Skip to main content

keyoscacquire is a Python package for acquiring traces from Keysight oscilloscopes through a VISA interface.

Project description

v3.0.0 | October 2019 | Andreas Svela

keyoscacquire is a Python package for acquiring traces from Keysight oscilloscopes through a VISA interface.

Based on PyVISA, keyoscacquire provides programmes for acquiring and exporting traces to your choice of ASCII format files (default csv) or numpy npy, and a png of the trace plot. The package provides a class Oscilloscope and data processing functions that can be used in other scripts. For example, to capture the active channels on an oscilloscope connected with VISA address USB0::1234::1234::MY1234567::INSTR:

>>> import keyoscacquire.oscacq as koa
>>> osc = koa.Oscilloscope(address='USB0::1234::1234::MY1234567::INSTR')
>>> time, y, channel_numbers = osc.set_options_get_trace()

where time is a vertical numpy vector of time values and y is a numpy array which columns contain the data from the active channels listed in channel_numbers.

If you need to find the VISA address of your oscilloscope, use the command line programme list_visa_devices provided by this package.

The code has been tested on Windows 7 and 10 with a Keysight DSO2024A model using a USB connection.

Documentation

Available here.

Contribute

Contributions are welcome, find the project on github.

Project details


Download files

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

Source Distribution

keyoscacquire-3.0.0.tar.gz (17.2 kB view hashes)

Uploaded Source

Built Distribution

keyoscacquire-3.0.0-py3-none-any.whl (18.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page