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).

../../../../../_images/digital-input-output-1.png
Description of Digital Input and Output

vi

Attributes

Digital Input and Output

Digital signal initialization

Read

Digital signal reading

Write

Digital signal writing

Digital Input and Output (vi)

../../../../../_images/digital-input-output-4.png

Is a class that contains the code for reading and writing to the digital I/O bus. Has only a HG_LIB output.

Read

../../../../../_images/digital-input-output-3.png

A vi that allows for reading the digital state of the input pin specified by the Create ID vi.

Inputs and Outputs

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

../../../../../_images/digital-input-output-2.png

A vi that allows for writing a high or low to the output pin specified by the Create ID vi.

Inputs and Outputs

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 Output Example

This example will turn on an LED connected to digital port 12 on the VMX.

../../../../../_images/digital-output-example.png

Digital Input Example

This example will read a digital signal from a Pushbutton connected to digital port 11 on the VMX.

../../../../../_images/digital-input-example.png