DO_WriteLine | ![]() ![]() ![]() ![]() |
DO_WriteLine
@ Description
Sets the specified digital output line in the specified digital port to the specified state. This function is only available for these cards that support digital output read-back functionality.
@ Cards Support
6208, 6308, 7200, 7250/51, 7252, 9118
@ Syntax
Microsoft C/C++ and Borland
C++
I16 DO_WriteLine (U16 CardNumber,
U16 Port, U16 Line, U16 State)
Visual Basic
DO_WriteLine(ByVal CardNumber
As Integer, ByVal Port As Integer, ByVal DoLine As Integer, ByVal State
As Integer) As Integer
@ Parameter
CardNumber : The
card id of the card that want to perform this operation.
Port : Digital output
port number. The valid value:
PCI-6208V/16V/08A: 0
PCI-6308V/08A: 0
PCI-7200/cPCI-7200: 0
PCI-7250/51: 0 through 3
cPCI-7252: 0
Line : The digital line
to write to. The valid value:
PCI-6208V/16V/08A: 0 through 3
PCI-6308V/08A: 0 through 3
PCI-7200/cPCI-7200: 0 through 31
PCI-7250/51: 0 through 7
cPCI-7252: 0 through 7
PCI-9118DG/HG/HR: 0 through 3
State : The new digital
logic state, 0 or 1.
@ Return Code
NoError, ErrorInvalidCardNumber,
ErrorCardNotRegistered, ErrorFuncNotSupport, ErrorInvalidIoChannel