C/C++ Library
•
43
@ Example
#include "8216.h"
main()
{
unsigned int
data;
int
ch;
_8216_Initial( CARD_1, 0x220 );
/* Assume NoError when Initialize ACL-8216 */
for( ch=0; ch<16; ch++ )
{
_8216_DI_channel( ch , &data );
printf( "The value if DI channel %d is
%d.\n" , ch , data );
}
}
5.6 _8216_DO
@ Description
This function is used to write data to digital output ports. There are
16 digital outputs on the ACL-8216, they are divided by two ports,
DO_LOW_BYTE and DO_HIGH_BYTE. The channel 0 to channel 7
are defined in DO_LOW_BYTE
port and the channel 8 to channel 15
are defined as the DO_HIGH_BYTE port.
@ Syntax
int _8216_DO(int port_number, unsigned char data )
@ Argument
port_number:
DO_LOW_BYTE or DO_HIGH_BYTE
data:
value will be written to digital output
port
@ Return Code
ERR_NoError
ERR_BoardNoInit
ERR_PortError
@ Example
#include "8216.h"
main()
{
_8216_Initial( CARD_1, 0x220 );
Summary of Contents for NuDAQ ACL-8216
Page 1: ...N u D A Q ACL 8216 16 bit High Resolution Data Acquisition Card User s Guide...
Page 3: ......
Page 7: ......
Page 14: ...Installation 7 Figure 2 1 PCB Layout of the ACL 8216...
Page 17: ...10 Installation...
Page 27: ......
Page 45: ......
Page 55: ...48 C C Library...
Page 58: ...C C Library 51...
Page 62: ...C C Library 55 int count int ad_buffer unsigned int c1 unsigned int c2...
Page 65: ...58 C C Library...
Page 71: ......
Page 75: ......
Page 77: ......