Skip to main content

Testing

Code testing status Docs testing status Coverage status

Code Quality

CodeQL status CodeFactor grade pre-commit status

Package

PyPI: Package status PyPI: Latest release version PyPI: Supported Python versions PyPI: Downloads License: Apache 2.0 Package build status PyPI upload status TestPyPI upload status

Documentation

Documentation status

Code Style

Test style: pytest Code style: black Imports: isort Docstring style: google

Linting

pre-commit enabled Docstring formatter: docformatter Type Checker: pyright Linter: pylint Linter: Ruff


tm_devices: Test & Measurement Device Management

tm_devices is a device management package which allows for better control and usage of Test & Measurement devices in python scripts. This is accomplished by using the PyVISA package to manage connections and communication with devices. tm_devices gives users access to a much higher level abstraction of device control by providing access to device drivers with a complete Python API.

Dependencies

tm_devices can be used without any external (non-python) dependencies on any operating system thanks to the PyVISA-py VISA backend. However, in order to use any VISA functionality that PyVISA-py does not implement, a third-party VISA backend such as NI-VISA can be installed. tm_devices will use an available VISA backend if one is found and will fall back to using PyVISA-py if no other VISA backends are installed.

Installation

pip install tm_devices

Basic Usage

Print Available VISA Devices

$ list-visa-resources
[
  "TCPIP0::192.168.0.100::inst0::INSTR",
  "ASRL4::INSTR"
]

Basic Script

from tm_devices import DeviceManager

with DeviceManager() as device_manager:
    scope = device_manager.add_scope("192.168.0.100")
    scope.query("*IDN?")
    print(scope)

Supported Devices

Device Support Levels
Type
Series/Model
Command
Type
Basic
Control
Python API
Validation
Status

AFGs <AFG>

AFG3000

PI

🚧

AFG31xxx

PI

AWGs <AWG>

AWG5000

PI

🚧

AWG5200

PI

🚧

AWG7000

PI

🚧

AWG70000

PI

🚧

Scopes <Scope>

2 Series MSO

PI

🚧

3 Series MDO

PI

🚧

4 Series MSO

PI

🚧

5 Series MSO

PI

🚧

5 Series B MSO

PI

🚧

5 Series MSO (LP)

PI

🚧

6 Series MSO

PI

🚧

6 Series B MSO

PI

🚧

6 Series LPD

PI

🚧

MSO2000/B

PI

🚧

DPO2000/B

PI

🚧

MDO3000

PI

🚧

MDO4000/B/C

PI

🚧

MSO4000/B

PI

🚧

DPO4000/B

PI

🚧

MSO5000/B

PI

🚧

DPO5000/B

PI

🚧

DPO7000/C

PI

🚧

DPO70000/C/D/DX/SX

PI

🚧

DSA70000/C/D

PI

🚧

MSO70000/C/DX

PI

🚧

TSOVu

PI

TekScope

PI

PSUs <PSU>

2200

PI

2220

PI

2230

PI

2231

PI

2280S

PI

2281S

PI

SMUs <SMU>

24xx Standard

PI

24xx Interactive

TSP

🚧

26xxB

TSP

🚧

Model 2601B-PULSE

TSP

🚧

Model 2606B

TSP

🚧

2651A

TSP

🚧

2657A

TSP

🚧

6430 (electrometer)

PI

6514 (electrometer)

PI

6517B (electrometer)

PI

MTs <MT>

TMT4

API

DMMs <DMM>

DMM6500

TSP

🚧

DMM7510

TSP

🚧

DMM7512

TSP

DAQs <DAQ>

DAQ6510

TSP

🚧

SSs <SS>

3706A

TSP

🚧

Supported Connections

  • REST API

  • VISA (NI-VISA and PyVISA-py)

    • TCPIP

    • ASRL / Serial / RS-232 / RS-485

    • SOCKET

    • USBTMC (no PyVISA-py support)

    • GPIB (no PyVISA-py support)

Documentation

See the full documentation at https://tm-devices.readthedocs.io

Maintainers

Contributing

Interested in contributing? Check out the contributing guidelines. Please note that this project is released with a Code of Conduct. By contributing to this project, you agree to abide by its terms.

License

tm_devices was created by Tektronix. It is licensed under the terms of the Apache License 2.0.

Credits

tm_devices was created with cookiecutter and the py-pkgs-cookiecutter template.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tm_devices-0.1.19.tar.gz (6.0 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tm_devices-0.1.19-py3-none-any.whl (6.7 MB view details)

Uploaded Python 3

File details

Details for the file tm_devices-0.1.19.tar.gz.

File metadata

  • Download URL: tm_devices-0.1.19.tar.gz
  • Upload date:
  • Size: 6.0 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.6

File hashes

Hashes for tm_devices-0.1.19.tar.gz
Algorithm Hash digest
SHA256 98c3d591663bd2e14af1810f128e6c7ea7d5bee4117b07bb6875aed46c531997
MD5 7473c97fe2d99c51b0e47c4cc35bbbed
BLAKE2b-256 bc3ee8d967721cf7dcb38686dcfa05d14be4981073d7c6769337b839064136e9

See more details on using hashes here.

File details

Details for the file tm_devices-0.1.19-py3-none-any.whl.

File metadata

  • Download URL: tm_devices-0.1.19-py3-none-any.whl
  • Upload date:
  • Size: 6.7 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.6

File hashes

Hashes for tm_devices-0.1.19-py3-none-any.whl
Algorithm Hash digest
SHA256 4208a58799380925f294429740cced3e83158881a7c5203d1894f706d72e8b20
MD5 1e08bf7036d7d9234d6772a1864ae3e6
BLAKE2b-256 83099996f987a02a6fa13866f7b73c7b3aa9dffc997801a4607893f192ee5ea5

See more details on using hashes here.

Release history Release notifications | RSS feed

3.7.0

2 files

3.6.1

2 files

3.6.0

2 files

3.5.0

2 files

3.4.0

2 files

3.3.0

2 files

3.2.0

2 files

3.1.10

2 files

3.1.9

2 files

3.1.8

2 files

3.1.7

2 files

3.1.6

2 files

3.1.5

2 files

3.1.4

2 files

3.1.3

2 files

3.1.2

2 files

3.1.1

2 files

3.1.0

2 files

3.0.0

2 files

2.5.0

2 files

2.4.0

2 files

2.3.0

2 files

2.2.2

2 files

2.2.1

2 files

2.2.0

2 files

2.1.0

2 files

2.0.0

2 files

1.5.0

2 files

1.4.2

2 files

1.4.1

2 files

1.4.0

2 files

1.3.0

2 files

1.2.3

2 files

1.2.2

2 files

1.2.1

2 files

1.2.0

2 files

1.1.0

2 files

1.0.1

2 files

1.0.0

2 files

0.1.24

2 files

0.1.22

2 files

0.1.21

2 files

This release

0.1.19 This release

2 files

0.1.18

2 files

0.1.17

2 files

0.1.16

2 files

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