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.1.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.1.0
File Size Uploaded Provenance Actions
fluke5440b_async-2.1.0.tar.gz 52.0 kB Without provenance Details for fluke5440b_async-2.1.0.tar.gz

Built distribution (wheel)

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

Total release size: 83.0 kB

Release files / fluke5440b_async-2.1.0.tar.gz

Download URL fluke5440b_async-2.1.0.tar.gz
Size 52.0 kB
Tags Source
SHA-256 checksum
How to use checksums
b5101f9da974829ec3ffe3510957c102da35b0727c7521d08e42cacfab6c262f
BLAKE2b-256 checksum
How to use checksums
3a6c36781c4bdc66d679362acaac94b12b8b1c0bdad2a7c6a1b97bb644a63511
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.1.0-py3-none-any.whl

Download URL fluke5440b_async-2.1.0-py3-none-any.whl
Size 31.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
22c77128b84cc384cab9bfb6818e7afd1cc3702d63b394ec5440d5b9be86048c
BLAKE2b-256 checksum
How to use checksums
dac5e7151f89a77b17a87e368d63f2b65dced632caa2d2aaaaf8ac48044cc947
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.1.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