ICP DAS
LinPAC-52xx Series XV-Board API User Manual
28
Connect the DO channel on the XV310 module to the DI channel on the M-7002 module, as
illustrated below:
Power Supply
M-7002
Â
Run
Set and read back the Digital Output value from multiple channels
Step1: Transfer the setxvdo.exe and getxvdo.exe files to the LP-52xx module.
Step2: Change the permissions for the files as shown below:
# chmod 755 setxvdo.exe
# chmod 755 getxvdo.exe
Step3: Execute the program.
Write to the DO0 channel
# ./setxvdo 0 1 1
Write to the DO1 channel
# ./setxvdo 1 1 1
Write to the DO2 channel
# ./setxvdo 2 1 1
Write to the DO3 channel
# ./setxvdo 3 1 1
Write to all DO channels
# ./setxvdo 0 4 10
Read back the DO0 channel
# ./getxvdo 0 1
Read back the DO1 channel
# ./getxvdo 1 1
Read back the DO2 channel
# ./getxvdo 2 1
Read back the DO3 channel
# ./getxvdo 3 1
Read back all DO channels
# ./getxvdo 0 4