Skip to main content

pylint Coverage PyPI PyPI - Python Version PyPI - Status License: GPL v3 code style

fluke5440b-async

Python3 asyncio Fluke 5440B driver. This library requires Python asyncio and an asyncio library for the GPIB adapter.

The library is fully type-hinted.

⚠️ The following features are not supported (yet):

  • External calibration: I do not have the means to test this. If you want to help, open a ticket and we can get this done.
  • Setting and retrieving DUUT tolerances and errors. I believe this is best done in software on the host computer and not done internally in the calibrator. If you really need that feature, open a ticket.

Supported GPIB Hardware

Device Supported Tested Comments
asyncio Prologix GPIB library ✔️ ✔️
asyncio linux-gpib wrapper ✔️ ✔️

Tested using Linux, but should work on Mac OSX, Windows or any OS with Python support.

Documentation

The full documentation can be found on GitHub Pages: https://patrickbaus.github.io/pyAsyncFluke5440B/. I use the Numpydoc style for documentation and Sphinx for compiling it.

Setup

To install the library in a virtual environment (always use venvs with every project):

python3 -m venv env  # virtual environment, optional
source env/bin/activate  # only if the virtual environment is used
pip install fluke5440b-async

All examples assume that a GPIB library is installed as well. Either run

pip install prologix-gpib-async    # or alternatively
# pip install async-gpib

Usage

⚠️ The calibrator does not like excessive serial polling. So, when using the Prologix adapter, one might see warnings like this: Got error during waiting: ErrorCode.GPIB_HANDSHAKE_ERROR. If you are using a Prologix adapter, this can be safely ignored at this point. These are harmless and can be ignored.

The library uses an asynchronous context manager to make cleanup easier. You can use either the context manager syntax, or invoke the calls manually:

async with Fluke_5440B(connection=gpib_device) as fluke5440b:
    # Add your code here
    ...
try:
    fluke5440b = Fluke_5440B(connection=gpib_device)
    await fluke5440b.connect()
    # your code
finally:
    await fluke5440b.disconnect()

A simple example for setting the output voltage.

from pyAsyncFluke5440B.Fluke_5440B import Fluke_5440B

from pyAsyncGpib.pyAsyncGpib.AsyncGpib import AsyncGpib


# This example will print voltage data to the console
async def main():
    # The default GPIB address is 7.
    async with Fluke_5440B(connection=AsyncGpib(name=0, pad=7)) as fluke5440b:
        # No need to explicitely bring up the GPIB connection. This will be done by the instrument.
        await fluke5440b.set_output(10.0)
        await fluke5440b.set_output_enabled(True)


try:
    asyncio.run(main(), debug=True)
except KeyboardInterrupt:
    # The loop will be canceled on a KeyboardInterrupt by the run() method, we just want to suppress the exception
    pass

See examples/ for more working examples.

Versioning

I use SemVer for versioning. For the versions available, see the tags on this repository.

Authors

License

This project is licensed under the GPL v3 license - see the LICENSE file for details

Metadata

Release files for fluke5440b-async 2.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for fluke5440b-async 2.0.0
File Size Uploaded Provenance Actions
fluke5440b_async-2.0.0.tar.gz 51.7 kB Without provenance Details for fluke5440b_async-2.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for fluke5440b-async 2.0.0
File Interpreter ABI Platform Actions
fluke5440b_async-2.0.0-py3-none-any.whl Python 3 none any Details for fluke5440b_async-2.0.0-py3-none-any.whl

Total release size: 82.5 kB

Release files / fluke5440b_async-2.0.0.tar.gz

Download URL fluke5440b_async-2.0.0.tar.gz
Size 51.7 kB
Tags Source
SHA-256 checksum
How to use checksums
462c949be31bfd9db3a03ad8f8ac5d31e12c35b9636b5652d6a0f183d2e4e503
BLAKE2b-256 checksum
How to use checksums
76833e21cd755e17f11ecf4c3371c1be3dae75e5b479a5ec975fb08738d3afa7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / fluke5440b_async-2.0.0-py3-none-any.whl

Download URL fluke5440b_async-2.0.0-py3-none-any.whl
Size 30.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bb7ebb5d04b92cd243179298ba7aec745cbfef8a883279a22ff50537e16ec780
BLAKE2b-256 checksum
How to use checksums
65c39c7737a265f4c7606e00cfbda776e3daa027a2856b8adf720a1a48c83a60
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Security for fluke5440b-async 2.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page