ADLINK PCM-9112+ User Manual

Page 55

Advertising
background image

C/C++ Library

47

5.5 _9112_DI

_Channel

@ Description

This function is used to read data from the digital input channels (bit).
There are 16 digital input channels on the PCI-9112. When performing
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.

@ Syntax

Visual C++ (Windows-95)

int W_9112_DI_Channel (int card_number, int di_ch_no,

unsigned int *di_data)

Visual Basic (Windows-95)

W_9112_DI_Channel (ByVal card_number As Long, ByVal

di_ch_no As Long, di_data As Long) As Integer

C/C++ ( DOS)

int _9112_DI_Channel (int card_number, int di_ch_no,

unsigned int *di_data )

@ Argument

card_number:

the card number of PCI-9112

di_ch_no: the DI channel number, the value has to be

set from 0 to 15.

di_data: return value, either 0 or 1.

@ Return Code

ERR_NoError,

ERR_BoardNoInit, ERR_InvalidDIChannel

Advertising