C Language Library
•
55
7.3 _8112_DI
Description
This function is used to read data from digital input port. There are
16-bit digital inputs on the ACL-8112. The bit 0 to bit 7 are defined as
low byte
and the bit 8 to bit 15 are defined as the
high byte
.
Syntax
int _8112_DI( int port_number, unsigned char *data )
int _8112pg_DI( int port_number, unsigned char *data )
Argument:
port_number:
To indicate which port is read,
DI_LO_BYTE
or DI_HI_BYTE.
DI_LO_BYTE: bit 0 ~ bit 7,
DI_HI_BYTE: bit8 ~ bit15
data:
return value from digital port.
Return Code:
ERR_NoError
ERR_BoardNoInit
ERR_PortError
Example:
See Demo program . Demo Program 'DI_DEMO.C'
7.4 _8112_DI _Channel
Description
This function is used to read data from digital input channels (bit).
There are 16 digital input channels on the ACL-8112. 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.
Syntax
int _8112_DI_Channel(int di_ch_no, unsigned int *data )
int _8112pg_DI(int di_ch_no, unsigned int *data )
Summary of Contents for ACL-8112 Series
Page 1: ...NuDAQ ACL 8112 Series Enhanced Multi Functions Data Acquisition Cards User s Guide ...
Page 4: ......
Page 40: ...32 Registers Format 1 1 1 1 1 000 Unipolar N A Table 4 2 1 Function of the Gain Control Bits ...
Page 44: ...36 Registers Format Base 14 DO15 DO14 DO13 DO12 DO11 DO10 DO9 DO8 ...
Page 46: ...38 Registers Format Base 2 Counter 2 Register R W Base 3 8254 CONTROL BYTE ...
Page 71: ...C Language Library 63 ...
Page 81: ...C Language Library 73 Example See Demo Program AD_Demo4 C ...
Page 85: ...C Language Library 77 ERR_AD_INTNotSet Example See demo program AD_Demo2 C ...