42
•
C/C++ Library
5.4 _8216_DI
@ Description
This function is used to read data from digital input port. There are
16 bits of digital input on the ACL-8216. 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 _8216_DI( int port_number, unsigned char *data )
@ Argument
port_number:
To indicate which port is read,
DI_LOW_BYTE
or DI_HIGH_BYTE.
DI_LOW_BYTE: bit 0 ~ bit 7,
DI_HIGH_BYTE: bit8 ~ bit15
data:
return value from digital port.
@ Return Code
ERR_NoError
ERR_BoardNoInit
ERR_PortError
@ Example
See demo program 'DI_DEMO.C'
5.5 _8216_DI _Channel
@ Description
This function is used to read data from digital input channels (bit).
There are 16 digital input channels on the ACL-8216. 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 _8216_DI(int di_ch_no, unsigned int *data )
@ Argument
di_ch_no:
the DI channel number, the value has to
be set
from 0 to 15.
data:
return value, either 0 or 1.
@ Return Code
ERR_NoError
ERR_BoardNoInit
ERR_InvalidDIChannel
Содержание NuDAQ ACL-8216
Страница 1: ...N u D A Q ACL 8216 16 bit High Resolution Data Acquisition Card User s Guide...
Страница 3: ......
Страница 7: ......
Страница 14: ...Installation 7 Figure 2 1 PCB Layout of the ACL 8216...
Страница 17: ...10 Installation...
Страница 27: ......
Страница 45: ......
Страница 55: ...48 C C Library...
Страница 58: ...C C Library 51...
Страница 62: ...C C Library 55 int count int ad_buffer unsigned int c1 unsigned int c2...
Страница 65: ...58 C C Library...
Страница 71: ......
Страница 75: ......
Страница 77: ......