ADLINK PCI-7256 User Manual
Page 39
 
C/C++ DOS Libraries
• 31
5.3 _7256_DO
@ Description
This function is used to write data to digital output port which can energize 
the Latching relay SET/RESET coils. You can control all 16 RELAYs through 
_7256_DO by using this function. Althought the register map of latching 
relays is 32 bit width, we use 16-bit access to control the latching relay 
through this function. Bit ‘1’ represent the SET condition (1,0), and Bit ‘0’ 
represent the RESET condition (0,1). 
@ Syntax
U16 _7256_DO (U16 boardID, U16 doData)
@ Argument
boardID :Board ID to the specific borad. 
doData :value which will be written to digital output 
port. 
@ Return Code
ERR_NoError, ERR_BoardNoInit 
 
5.4 _7256_DO_Read_Back
@ Description
This function is used to read data back from digital output port control by 
7256_DO function. There are 16-bit digital outputs on the PCI-7256. You can 
get back all RELAYs status (SET or RESET) by using this function. 
@ Syntax
U16 _7256_DO_Read_Back (U16 boardID, U16 *doReadBackData)
@ Argument
boardID : Board ID to the specific borad. 
diReadBackData : value read back from digital output 
port. ‘0’ represents the latching relay is under RESET 
condition and ‘1’ represents the latching relay is under 
SET condition. 
@ Return Code
ERR_NoError, ERR_BoardNoInit