exit(0);

errCode = _9112_Initial( CARD_2, &baseAddr2, &irqNo2); if ( errCode != ERR_NoError )

exit(0);

.

}

5.4_9112_DI

@ Description

This function is used to read data from digital input port. There are 16-bit digital inputs on the PCI-9112. You can get all 16 input data from _9112_DI one shot.

uSyntax

Visual C++ (Windows-95)

int W_9112_DI (int card_number, unsigned int *di_data)

Visual Basic (Windows-95)

int W_9112_DI (ByVal card_number As Long, di_data As Long) As Long

C/C++ (DOS)

int _9112_DI (int card_number, unsigned int *di_data)

uArgument

card_number : the card number of PCI-9112

di_data : return all 16-bit value from digital port.

uReturn Code

ERR_NoError, ERR_BoardNoInit

uExample

See Appendix A . Demo Program 'DIO_DEMO.C'

5.5_9112_DI _Channel

uDescription

This function is used to read data from digital input channels (bit). There are 16 digital input channels on the PCI-9112. When performs this function, the digital input port is read and the value of the corresponding channel is returned.

* channel means each bit of digital input ports.

42 C/C++ Library