6 _7250_do, _7252_do, Description, Syntax – ADLINK cPCI-7252 User Manual
Page 44: Arguments, 7250_do, _7252_do, Description @ syntax @ arguments

34
C/C++ Libraries
5.6 _7250_DO, _7252_DO
@ Description
This function is used to write data to the digital output port. This
energizes or de-energizes the RELAY. There are 8 digital outputs
on the PCI-7250 or PCI-7251 extended board. You can control all
32 RELAY’s through using the _7250_DO function.
@ Syntax
C/C++ (DOS)
U16 _7250_DO (U16 cardNo, U16 doPortNo, U16
doData)
U16 _7252_DO (U16 cardNo, U16 doData)
C/C++ (Windows 95)
U16 W_7250_DO (U16 cardNo, U16 doPortNo, U16
doData)
U16 W_7252_DO (U16 cardNo, U16 doData)
Visual Basic (Windows 95)
W_7250_DO (ByVal cardNo As Integer, ByVal
doPortNo As Integer, ByVal doData As
Integer) As Integer
W_7252_DO (ByVal cardNo As Integer, ByVal doData
As Integer) As Integer
@ Arguments
cardNo: card number selected
doChannelNo: Digital Output Channel No, the constant is:.
Note: This argument is not necessary for cPCI-7252
doData: value will be written to digital output port
DI_PORT0 0x00
Access the 8 Digital Input of PCI-7250
DI_PORT1 0x01 Access the 8 Digital Input of Expansion Board PCI-7251#1
DI_PORT2 0x02 Access the 8 Digital Input of Expansion Board PCI-7251#2
DI_PORT3 0x03 Access the 8 Digital Input of Expansion Board PCI-7251#3