26 •• C/C++ Libraries
5.6 _7250_DO, _7252_DO
@ Description
This function is used to write data to digital output port which can
energized RELAY ON/OFF. There are 8 digital outputs on the PCI-
7250 or PCI-7251 extended board. You can control all 32 RELAYs
through _7250_DO by using this 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
@ Argument
cardNo : card number to select borad
doChannelNo : Digital Output Channel No, the constant is
(Note: This argument is not necessary for cPCI-7252)
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
doData : value will be written to digital output port
@ Return Code
ERR_NoError, ERR_BoardNoInit