digio

The digio commands module.

These commands are used in the following models: DAQ6510, SMU2450, SMU2460, SMU2461, SMU2470

THIS FILE IS AUTO-GENERATED, IT SHOULD NOT BE MANUALLY MODIFIED.

Please report an issue if one is found.

Attributes and Functions
- digio.line[N].mode
- digio.line[N].reset()
- digio.line[N].state
- digio.readport()
- digio.writeport()

Digio

Bases: BaseTSPCmd

The digio command tree.

Constants
  • .MODE_DIGITAL_IN: Set the digital I/O mode to digital control, input.
  • .MODE_DIGITAL_OPEN_DRAIN: Set the digital I/O mode to digital control, open-drain.
  • .MODE_DIGITAL_OUT: Set the digital I/O mode to digital control, output.
  • .MODE_SYNCHRONOUS_ACCEPTOR: Set the digital I/O mode to synchronous acceptor.
  • .MODE_SYNCHRONOUS_MASTER: Set the digital I/O mode to synchronous master.
  • .MODE_TRIGGER_IN: Set the digital I/O mode to trigger control, input.
  • .MODE_TRIGGER_OPEN_DRAIN: Set the digital I/O mode to trigger control, open-drain.
  • .MODE_TRIGGER_OUT: Set the digital I/O mode to trigger control, output.
  • .STATE_HIGH: Set the line high.
  • .STATE_LOW: Set the line low.
Properties and methods
  • .line: The digio.line[N] command tree.
  • .readport(): The digio.readport() function.
  • .writeport(): The digio.writeport() function.

MODE_DIGITAL_IN class-attribute instance-attribute

MODE_DIGITAL_IN = 'digio.MODE_DIGITAL_IN'

MODE_DIGITAL_OPEN_DRAIN class-attribute instance-attribute

MODE_DIGITAL_OPEN_DRAIN = 'digio.MODE_DIGITAL_OPEN_DRAIN'

MODE_DIGITAL_OUT class-attribute instance-attribute

MODE_DIGITAL_OUT = 'digio.MODE_DIGITAL_OUT'

MODE_SYNCHRONOUS_ACCEPTOR class-attribute instance-attribute

MODE_SYNCHRONOUS_ACCEPTOR = 'digio.MODE_SYNCHRONOUS_ACCEPTOR'

MODE_SYNCHRONOUS_MASTER class-attribute instance-attribute

MODE_SYNCHRONOUS_MASTER = 'digio.MODE_SYNCHRONOUS_MASTER'

MODE_TRIGGER_IN class-attribute instance-attribute

MODE_TRIGGER_IN = 'digio.MODE_TRIGGER_IN'

MODE_TRIGGER_OPEN_DRAIN class-attribute instance-attribute

MODE_TRIGGER_OPEN_DRAIN = 'digio.MODE_TRIGGER_OPEN_DRAIN'

MODE_TRIGGER_OUT class-attribute instance-attribute

MODE_TRIGGER_OUT = 'digio.MODE_TRIGGER_OUT'

STATE_HIGH class-attribute instance-attribute

STATE_HIGH = 'digio.STATE_HIGH'

STATE_LOW class-attribute instance-attribute

STATE_LOW = 'digio.STATE_LOW'

line property

Return the digio.line[N] command tree.

Info
  • N, the digital I/O line: 1 to 6.
Sub-properties and sub-methods
  • .mode: The digio.line[N].mode attribute.
  • .reset(): The digio.line[N].reset() function.
  • .state: The digio.line[N].state attribute.

readport

readport() -> str

Run the digio.readport() function.

Description
  • This function reads the digital I/O port.
TSP Syntax
- digio.readport()
Returns:
  • str

    The result of the function call.

Raises:

writeport

writeport(data: int) -> None

Run the digio.writeport() function.

Description
  • This function writes to all digital I/O lines.
TSP Syntax
- digio.writeport()
Parameters:
  • data (int) –

    The value to write to the port (0 to 63).

Raises:

DigioLineItem

Bases: ValidatedDynamicNumberCmd, BaseTSPCmd

The digio.line[N] command tree.

Info
  • N, the digital I/O line: 1 to 6.
Properties and methods
  • .mode: The digio.line[N].mode attribute.
  • .reset(): The digio.line[N].reset() function.
  • .state: The digio.line[N].state attribute.

mode property writable

mode: str

Access the digio.line[N].mode attribute.

Description
  • This attribute sets the mode of the digital I/O line to be a digital line, trigger line, or synchronous line and sets the line to be input, output, or open-drain.
Usage
  • Accessing this property will send the print(digio.line[N].mode) query.
  • Setting this property to a value will send the digio.line[N].mode = value command.
TSP Syntax
- digio.line[N].mode = value
- print(digio.line[N].mode)
Info
  • N, the digital I/O line: 1 to 6.
Raises:

state property writable

state: str

Access the digio.line[N].state attribute.

Description
  • This function sets a digital I/O line high or low when the line is set for digital control and returns the state on the digital I/O lines.
Usage
  • Accessing this property will send the print(digio.line[N].state) query.
  • Setting this property to a value will send the digio.line[N].state = value command.
TSP Syntax
- digio.line[N].state = value
- print(digio.line[N].state)
Info
  • N, the digital I/O line: 1 to 6.
Raises:

reset

reset() -> None

Run the digio.line[N].reset() function.

Description
  • This function resets digital I/O line values to their factory defaults.
TSP Syntax
- digio.line[N].reset()
Info
  • N, the digital I/O line: 1 to 6.
Raises: