configure_digital_port()#

InstroDAQ.configure_digital_port(
direction: Direction,
physical_channel: str,
logic: Logic,
port_width: DigitalPortWidth,
logic_level: float | None = None,
alias: str | None = None,
)[source]#

Configure a digital port channel.

Parameters:
  • direction – INPUT or OUTPUT.

  • physical_channel – Vendor-specific port id (e.g. "port0" on NI, "5101" on Keysight, "AUXPORT0" on MCC).

  • logic – Active-HIGH or active-LOW.

  • port_width – Port width in bits (8/16/32/64).

  • logic_level – Voltage threshold (volts); the driver default is used when None.

  • alias – Friendly name; defaults to physical_channel.