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 using ps6000aSetDigitalPortOn.

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 using ps6000aSetDigitalPortOn.

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_v (float | list[float], default: 0.0 ) –

    Threshold in volts, between -8.0 V and +8.0 V. A single value is applied to all 8 pins, or pass a list of per-pin values. Defaults to 0.0.

  • hysteresis (DIGITAL_PORT_HYSTERESIS, default: NORMAL_100MV ) –

    Hysteresis level applied to all pins.

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

    Deprecated. Per-pin thresholds in raw ADC counts. If given, it overrides logic_threshold_level_v.

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.