Esp_Set_Adc_Range(Long Range); Esp_Get_Adc_Range(Long *Range) - Newport ESP6000 User Manual

Motion controller/driver
Table of Contents

Advertisement

esp_set_adc_range Set Analog-To-Digital Converter Input Range
esp_get_adc_range Report Analog-To-Digital Range Setting
Synopsis:
Arguments:
Library Location:
Description:
Returns:
Usage Example:
See Also:
Section 5 — Programming
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
#include "esp6000.h"
int esp_set_adc_range(long range)
int esp_get_adc_range(long *range)
long range
ADC range 0 or 1 (UNIPOLAR or BIPOLAR respectively)
\esp6000.dll
esp_set_adc_range() will set the range of all eight (8) ADC channels whereas
esp_get_adc_range() will retrieve the current setting.
The analog input range of each ADC channel is software-configurable for ranges of ±/
10V, ±/5V, ±/2.5V, and ±/1.25V.
ADC channels are located on the analog I/O connector on the controller card.
8 Single-
MUX
Ended
Input
ESPOK, ESPERROR
Hint:
#include "esp6000.h"
main()
{
long timestamp;
float volts;
if (!esp_init_system()) exit (-1);
/* Set ADC Gain */
esp_set_adc_gain(V10);
/* Set ADC Range */
esp_set_adc_range(BIPOLAR);
/* Acquire ADC Channel 1 Analog Data*/
esp_get_adc(1, &volts, &timestamp);
printf("ADC = %f \n\r", volts);
}
esp_set_adc_gain(), esp_get_adc(), esp_get_all_adc()
Programmable
Six-Pole
Gain
Anti-alias
Instrumentation
Filter
Amplifier
16-bit, 100 kHz
DSP
A/D Converter
Sample Trigger
Control
(Timer or
Software Driven)
5-87

Advertisement

Table of Contents
loading

This manual is also suitable for:

Unidrive6000

Table of Contents