ADLINK PCI-7258 User Manual
Page 34
 
26
• C/C++ Libraries
5.3 _7258_DO
@ Description
@ Syntax
U16 _7258_DO (U16 boardID, U16 Group, U16 doData)
@ Argument
boardID:
Board ID for the specific board.
Group:
group 0 represents DO channel 1~16, group 1 represents DO 
channel 17~32. 
doData:
value which will be written to digital output port.
@ Return Code
ERR_NoError, ERR_BoardNoInit, ERR_InvalidDOChannel 
 
5.4 _7258_DO_Read_Back
@ Description
This function is used to read data back from the digital output port controlled 
by the 7258_DO function. You can read back all relay status (close or open) 
by using this function. 
@ Syntax
U16 _7258_DO_Read_Back (U16 boardID, U16 Group, U16
*doReadBackData)
@ Argument
boardID : Board ID for the specific board. 
Group: 
group 0 represents DO channel 1~16, group 1 represents DO 
channel 17~32. 
diReadBackData : Value read back from digital output port. ‘0’ represents
the PhotoMos relay is under open condition and ‘1’ 
represents the PhotoMos relay is under close condition. 
@ Return Code
ERR_NoError, ERR_BoardNoInit, ERR_InvalidDOChannel