UIO-4031 GPIO:U-DI/DO

From ESS-WIKI
Jump to: navigation, search

UIO-4031 has four DI ports and four DO ports.
RTENOTITLE

RTENOTITLE

Show DI/DO Ports

# #---- Show DI ports ----# #
# cd /dev/
# ls DI*
DI1 DI2 DI3 DI4

# #---- Show DO ports ----# #
# cd /dev/
# ls DO*
DO1 DO2 DO3 DO4

Get DI Status

Take DI1 for example

# cat /dev/DI1
1

Note:

0 means the external circuit is NOT conductive.
1 means the external circuit is conductive.