msl.equipment.resources.picotech.picoscope.ps3000a module

A wrapper around the PicoScope ps3000a SDK.

class msl.equipment.resources.picotech.picoscope.ps3000a.PicoScope3000A(record)[source]

Bases: PicoScopeApi

A wrapper around the PicoScope ps3000a SDK.

Do not instantiate this class directly. Use the connect() method to connect to the equipment.

Parameters

record (EquipmentRecord) – A record from an Equipment-Register Database.

MAX_OVERSAMPLE = 256
PS3207A_MAX_ETS_CYCLES = 500
PS3207A_MAX_INTERLEAVE = 40
PS3206A_MAX_ETS_CYCLES = 500
PS3206A_MAX_INTERLEAVE = 40
PS3206MSO_MAX_INTERLEAVE = 80
PS3205A_MAX_ETS_CYCLES = 250
PS3205A_MAX_INTERLEAVE = 20
PS3205MSO_MAX_INTERLEAVE = 40
PS3204A_MAX_ETS_CYCLES = 125
PS3204A_MAX_INTERLEAVE = 10
PS3204MSO_MAX_INTERLEAVE = 20
EXT_MAX_VALUE = 32767
EXT_MIN_VALUE = -32767
MAX_LOGIC_LEVEL = 32767
MIN_LOGIC_LEVEL = -32767
MIN_SIG_GEN_FREQ = 0.0
MAX_SIG_GEN_FREQ = 20000000.0
PS3207B_MAX_SIG_GEN_BUFFER_SIZE = 32768
PS3206B_MAX_SIG_GEN_BUFFER_SIZE = 16384
MAX_SIG_GEN_BUFFER_SIZE = 8192
MIN_SIG_GEN_BUFFER_SIZE = 1
MIN_DWELL_COUNT = 3
MAX_SWEEPS_SHOTS = 1073741823
MAX_ANALOGUE_OFFSET_50MV_200MV = 0.25
MIN_ANALOGUE_OFFSET_50MV_200MV = -0.25
MAX_ANALOGUE_OFFSET_500MV_2V = 2.5
MIN_ANALOGUE_OFFSET_500MV_2V = -2.5
MAX_ANALOGUE_OFFSET_5V_20V = 20.0
MIN_ANALOGUE_OFFSET_5V_20V = -20.0
SHOT_SWEEP_TRIGGER_CONTINUOUS_RUN = 4294967295
SINE_MAX_FREQUENCY = 1000000.0
SQUARE_MAX_FREQUENCY = 1000000.0
TRIANGLE_MAX_FREQUENCY = 1000000.0
SINC_MAX_FREQUENCY = 1000000.0
RAMP_MAX_FREQUENCY = 1000000.0
HALF_SINE_MAX_FREQUENCY = 1000000.0
GAUSSIAN_MAX_FREQUENCY = 1000000.0
PRBS_MAX_FREQUENCY = 1000000.0
PRBS_MIN_FREQUENCY = 0.03
MIN_FREQUENCY = 0.03
get_max_ets_values()[source]

This function returns the maximum number of cycles and maximum interleaving factor that can be used for the selected scope device in ETS mode. These values are the upper limits for the etsCycles and etsInterleave arguments supplied to set_ets().

get_trigger_info_bulk(from_segment_index, to_segment_index)[source]

This function returns trigger information in rapid block mode.

Returns

The PS3000ATriggerInfo structure.

set_pulse_width_digital_port_properties(directions)[source]

This function will set the individual digital channels’ pulse-width trigger directions. Each trigger direction consists of a channel name and a direction. If the channel is not included in the array of PS3000ADigitalChannelDirections the driver assumes the digital channel’s pulse-width trigger direction is PS3000A_DIGITAL_DONT_CARE.

set_pulse_width_qualifier_v2(conditions, direction, lower, upper, pulse_width_type)[source]

This function sets up pulse-width qualification, which can be used on its own for pulse width triggering or combined with level triggering or window triggering to produce more complex triggers. The pulse-width qualifier is set by defining one or more structures that are then ORed together. Each structure is itself the AND of the states of one or more of the inputs. This AND-OR logic allows you to create any possible Boolean function of the scope’s inputs.

set_trigger_channel_conditions_v2(conditions)[source]

This function sets up trigger conditions on the scope’s inputs. The trigger is defined by one or more PS3000ATriggerConditionsV2 structures that are then ORed together. Each structure is itself the AND of the states of one or more of the inputs. This AND-OR logic allows you to create any possible Boolean function of the scope’s inputs.

If complex triggering is not required, use set_simple_trigger().

set_trigger_digital_port_properties(directions)[source]

This function will set the individual digital channels’ trigger directions. Each trigger direction consists of a channel name and a direction. If the channel is not included in the array of PS3000ADigitalChannelDirections the driver assumes the digital channel’s trigger direction is PS3000A_DIGITAL_DONT_CARE.