C/C++ Library
•
49
5.10 _8216_AD_Set_Range
@ Description
This function is used to set the A/D range by means of writing data
to the A/D range control register. There are two factors will change
the analog input range- Gain and Input type. The Gain can be choice
from 1,2,4 and 8. The initial value of gain is '1' which is set by the
ACL-8216 hardware. The relationship between analog input range
and gain is specified by following tables:
Input
Range (V)
Gain
Range
Code
±
5 V
X 1
0
±
2.5 V
X 2
1
±
1.25 V
X 4
2
±
0.625 V
X 8
3
@ Syntax
int _8216_AD_Set_Range( int range_code )
@ Argument
range_code:
the programmable range of A/D
conversion, the
possible values.
@ Return Code
ERR_NoError
ERR_BoardNoInit
ERR_AD_InvalidGain
@ Example
#include "8216.h"
main()
{
_8216_Initial( CARD_1, 0x220 );
/* Assume NoError when Initialize ACL-8216 */
_8216_AD_Set_Range( 1 );
printf( "The A/D analog input range is +/-5V.\n" );
…
}
Содержание 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: ......