Digital Input and Output¶
Handles the Digital inputs and outputs on the VMX.
Important
If using the High-Current Digital I/O Bus, it can only be configured as all inputs
or all outputs
(default).
vi |
Attributes |
---|---|
Digital Input and Output |
Digital signal initialization |
Read |
Digital signal reading |
Write |
Digital signal writing |
Digital Input and Output (vi)¶
Is a class that contains the code for reading and writing to the digital I/O bus. Has only a HG_LIB
output.
Read¶
A vi that allows for reading the digital state of the input pin specified by the Create ID
vi.
Name |
I/O |
Attribute |
---|---|---|
Digital Input and Output in |
Input |
The input cluster from Create ID |
error in (no error) |
Input |
The error input cluster |
Digital Input and Output out |
Output |
The output cluster to go to Delete ID |
Boolean |
Output |
The boolean value read on the digital pin |
error out |
Output |
The error output cluster |
Write¶
A vi that allows for writing a high or low to the output pin specified by the Create ID
vi.
Name |
I/O |
Attribute |
---|---|---|
Digital Input and Output in |
Input |
The input cluster from Create ID |
Control |
Input |
The boolean value to write to the digital pin |
error in (no error) |
Input |
The error input cluster |
Digital Input and Output out |
Output |
The output cluster to go to Delete ID |
error out |
Output |
The error output cluster |
Digital Input Example¶
This example will read a digital signal from a Pushbutton connected to digital port 11 on the VMX.