Read
② Digital Input (1port) [read_di_1ch1byte.vi]

 

Select when digital input 1 port (8bit)

It is also possible to perform digital input of analog devices and counter devices

 


Layout of IN/OUT terminal

 


IN terminal

DiPort

Initial value: 0

[Essential]
Specify the port No. to perform digital input

*For counter devices, please specify 0
You can read the digital input status of channel together

 

Mode

Initial value: 0

Normally not connected or specified as 0
The following settings are available only for wireless I/O devices

0: Refers to the input data of the slave stored in the Gatway
1: Directly access the Terminal and refer to the input data
2: Refer to the input data of the Terminal stored in the Gatway and the elapsed time (ElapsedTime)

 

OUT terminal

DiData

Get the digital input data

 

ElapsedTime

Gets the elapsed time (seconds) after data is stored in the Gatway when Mode=2 is set in the wireless I/O device