Newport ESP6000 User Manual page 152

Motion controller/driver
Table of Contents

Advertisement

esp_set_adc_gain Set Analog-To-Digital Converter Input Gain
esp_get_adc_gain Report Analog-To-Digital Converter Input Gain Setting
Synopsis:
Arguments:
Library Location:
Description:
Returns:
Usage Example:
See Also:
5-86
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
#include "esp6000.h"
int esp_set_adc_gain(long gain)
int esp_get_adc_gain(long *gain)
long gain
ADC gain (V1_25, V2_5, V5, V10)
0 - 3 (corresponding to gain of 1, 2, 4, or 8 respectively)
\esp6000.dll
esp_set_adc_gain() will set the gain of all eight (8) ADC channels.
esp_get_adc_gain() reports the present gain setting of all eight (8) ADC channels.
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_range(), 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)

Advertisement

Table of Contents
loading

This manual is also suitable for:

Unidrive6000

Table of Contents