Picotech
hardware_control.instruments.picotech.Picoscope module
Control class to handle different picoscopes.
Currently supports 2000, 5000, and 6000 Picoscopes.
- class hardware_control.instruments.picotech.Picoscope.Picoscope(instrument_name: str, pico_series: str, channels: list, timeout_ms: int = 20000)
Bases:
InstrumentPicotech Picoscpe 2000a and 5000a series instrument class.
Notes
1. The picoscope.ps5000a python library is meant for both 5000a and 5000b series instruments. 2. Picoscope channels are numbered such that the first channel is 0.
- PARAMETERS
- TIMEBASE (float)
Horizontal resolution in time per division.
- TIME_OFFSET (float)
Time offset from trigger.
- TRIGGER_LEVEL (float)
Trigger level.
- TRIGGER_EDGE (BOTH, NEG, POS, ALT)
Edge of waveform that the picoscope triggers on.
- TRIGGER_CHANNEL (int)
The channel (1,2,3, or 4) to trigger on.
- CH<X>_VOLTS_DIV (float)
The voltage per division for channel ‘X’.
- CH<X>_OFFSET (float)
The voltage offset for channel ‘X’.
- CH<X>_ACTIVE
On/off status of channel ‘X’.
- CH<X>_PROBE_ATTEN (float)
Probe attenuation for channel ‘X’. For example, providing the value ‘10’ would indicate a 10x or 10:1 probe.
- CH<X>_COUPLING (AC, DC)
Coupling mode for channel ‘X’.
- CH<X>_WAVEFORM
Most recent waveform measurement from channel ‘X’.
- COMMANDS
- SINGLE_TRIGGER
Set the instrument to trigger once.
- create_set_channel_func(channel, param)
Create a channel specific function to set a parameter.
- create_set_trigger_func(param)
Create a function that sets all parameters relating to triggering.
- try_connect()
Unique picoscope ‘try_connect’ function.
- hardware_control.instruments.picotech.Picoscope.pico_error_check(func)
Decorator to log all errors thrown by Picoscope python package.