Digital Port Control

Bases: PicoScopeBase, shared_ps6000a_psospa, shared_4000a_6000a, Sharedps5000aPs6000a

PicoScope 6000 (A) API specific functions

Methods:

Name Description
set_digital_port_off

Disable a digital port using ps6000aSetDigitalPortOff.

set_digital_port_on

Enable a digital port.

set_pulse_width_digital_port_properties

Configure digital port properties for pulse-width triggering.

set_digital_port_off(port)

Disable a digital port using ps6000aSetDigitalPortOff.

set_digital_port_on(port, logic_threshold_level_v=0.0, hysteresis=DIGITAL_PORT_HYSTERESIS.NORMAL_100MV, *, logic_threshold_level=None)

Enable a digital port.

WARNING - the threshold unit currently differs per driver: ps6000a passes the values to the driver as raw ADC counts (-32767..+32767 maps to -8 V..+8 V per the programmer's guide), while psospa treats each value as millivolts (converted to the driver's volts argument). A volts-canonical unified contract is tracked separately.

Thresholds are given in volts. The ps6000a digital port has a fixed +/-8 V range, so each volts value is converted to ADC counts internally.

Parameters:
  • port (DIGITAL_PORT) –

    Digital port to enable.

  • logic_threshold_level (list[int] | None, default: None ) –

    Threshold level for each pin (ps6000a: ADC counts; psospa: millivolts). psospa supports a single threshold for the whole port; the first value is used and any others are ignored with a warning.

  • hysteresis (DIGITAL_PORT_HYSTERESIS, default: NORMAL_100MV ) –

    Hysteresis level applied to all pins (ps6000a only; ignored with a warning on psospa).

set_pulse_width_digital_port_properties(port, directions)

Configure digital port properties for pulse-width triggering. Args: port: Digital port identifier. directions: Optional list of channel directions to set. None to clear existing configuration.