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
Summary of Contents for cPCI-7252
Page 4: ......
Page 10: ......
Page 18: ...8 Introduction ...
Page 20: ...10 Installation 2 2 PCB Layout PCI 7250 PCB Layout Figure 2 1 PCI 7250 Layout ...
Page 21: ...Installation 11 cPCI 7252 PCB Layout Figure 2 2 cPCI 7252 Layout ...
Page 28: ...18 Installation ...
Page 32: ...22 Registers ...
Page 43: ...C C Libraries 33 Return Code ERR_NoError ERR_BoardNoInit ...
Page 48: ...38 C C Libraries ...
Page 52: ...42 Appendix ...