Digital Port Control

Bases: PicoScopeBase, shared_ps6000a_psospa

PicoScope OSP (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 psospaSetDigitalPortOn.

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=None, *, logic_threshold_level=None)

Enable a digital port using psospaSetDigitalPortOn.

psospa takes the logic threshold directly in volts as a single value for the whole port (the C API signature differs from the ps6000a, which takes per-pin ADC counts). hysteresis is accepted for signature parity with the ps6000a method but is not used by the psospa driver.

Parameters:
  • port (DIGITAL_PORT) –

    Digital port to enable.

  • logic_threshold_level_v (float, default: 0.0 ) –

    Logic threshold in volts applied to the whole port. Defaults to 0.0.

  • hysteresis

    Ignored on psospa; present for signature parity.

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

    Deprecated and unsupported on psospa; pass logic_threshold_level_v in volts instead.

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.