Newport ESP6000 User Manual page 154

Motion controller/driver
Table of Contents

Advertisement

esp_get_adc Read Analog-To-Digital Converter Channel
Synopsis:
Arguments:
Library Location:
Description:
Returns:
Usage Example:
See Also:
5-88
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
#include "esp6000.h"
int esp_get_adc(long channel, float *volts, long *timestamp)
long channel
ADC input channel 1 - 8
long data
address of variable where ADC data is to be stored
long timestamp
current servo counter value at time of acquisition
\esp6000.dll
esp_get_adc() reads the analog-to-digital converter channel (1-8) specified.
The analog input range of each ADC channel is software-configurable for ranges of ±/
10V, 0 through +10, -10 through 0, ±/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_set_adc_gain(), 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