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: Thedigio.line[N]command tree..readport(): Thedigio.readport()function..writeport(): Thedigio.writeport()function.
MODE_DIGITAL_OPEN_DRAIN
class-attribute
instance-attribute
¶
MODE_DIGITAL_OPEN_DRAIN = 'digio.MODE_DIGITAL_OPEN_DRAIN'
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_OPEN_DRAIN
class-attribute
instance-attribute
¶
MODE_TRIGGER_OPEN_DRAIN = 'digio.MODE_TRIGGER_OPEN_DRAIN'
line
property
¶
line: dict[int, DigioLineItem]
Return the digio.line[N] command tree.
Info
N, the digital I/O line: 1 to 6.
Sub-properties and sub-methods
.mode: Thedigio.line[N].modeattribute..reset(): Thedigio.line[N].reset()function..state: Thedigio.line[N].stateattribute.
readport
¶
readport() -> str
Run the digio.readport() function.
Description
- This function reads the digital I/O port.
TSP Syntax
- digio.readport()
| Returns: |
|
|---|
| 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: |
|
|---|
| 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: Thedigio.line[N].modeattribute..reset(): Thedigio.line[N].reset()function..state: Thedigio.line[N].stateattribute.
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 = valuecommand.
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 = valuecommand.
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: |
|
|---|