Newport ESP6000 User Manual page 155

Motion controller/driver
Table of Contents

Advertisement

esp_get_all_adc Read All Analog-To-Digital Converter Channels
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_get_all_adc(float *DataArray, long *timestamp)
float DataArray
address of array where ADC data is to be stored
long timestamp
current servo counter value at time of acquisition
\esp6000.dll
esp_get_all_adc() reads all analog-to-digital converter channels 1-8.
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 DataArray[8];
if (!esp_init_system()) exit(-1);
/* Set ADC Gain */
esp_set_adc_gain(V10);
/* Set ADC Range */
esp_set_adc_range(UNIPOLAR);
/* Acquire All ADC Channels Data */
esp_get_all_adc(DataArray, &timestamp);
}
esp_set_adc_range(), esp_set_adc_gain(), esp_get_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-89

Advertisement

Table of Contents
loading

This manual is also suitable for:

Unidrive6000

Table of Contents