Oscilloscopes

This module provides support for controlling oscilloscopes with Python. Oscilloscopes can be imported by

>>> import hardware
>>> osc = hardware.function_generators.Agilent_DSO1024A('USB:...')
class hardware.oscilloscopes.Agilent_DSO1024A(visa_search_term)[source]

Hardware wrapper for Agilent DSO1024A digital oscilloscopes.

Parameters:visa_search_term (str) – The address that is passed to visa.ResourceManager().open_resource()
acquire(channel=1)[source]

Retrieves a time trace from a single acquisition.

Parameters:channel (int, optional) – The channel to be read
Returns:tuple of arrays – The first array contains the times in nanoseconds, and the second contains voltages in volts.
identify()[source]
Returns:str – The response of a *IDN? GPIB query
run()[source]

Simulates pressing the Run button on the front panel

set_timeout(milliseconds)[source]

Sets the instrument timeout in milliseconds

Parameters:milliseconds (float) – The amount of time to wait before timing out
single()[source]

Simulates pressing the Single button on the front panel.

stop()[source]

Simulates pressing the Stop button on the front panel