
SERIAL Digital I/O Series User Manual Eagle Technology - Data Acquisition
Analog Input – SRL 26, SRL 30
The SRL 26/30 has a very flexible analog input sub-system. Configuration includes dynamic
range, gain, reference and differential or single ended inputs. Each of these settings can be
applied to an individual channel while scanning.
The analog inputs can operate in two modes, single read or scanning. Only one mode can be
used at a single moment. The table below shows the relation between the software assigned
channels and the connector.
Assigned
Software
Channel
Input
Type
Input
Pin
Reference
Pin
0 Single ACH0 AGND
… … … …
15 Single ACH15 AGND
0 Differential ACH0 ACH8
… … … …
7 Differential ACH7 ACH15
Table 4-8 Assigned Analog Input Channels
Reading a single voltage from a channel
To read a single ADC channel you need to specify the channel, voltage range and gain.
API-CALL
Long EDRE_ADSingle (ulng Sn, ulng Channel, ulng Gain, ulng Range, plong uVoltage)
Parameter Type Description
Sn Unsigned long Device serial number
Channel Unsigned long ADC channel to read
Gain Unsigned long Gain Codes
Value Gain
0 X ¼
1 X ½
2 X 1
3 X 2.5
4 X 5
5 X 10
6 X 25
7 X 50
8 X 100
Range Unsigned long Range Codes
Value Range
0 UNIPOLAR, SINGLE ENDED
1 BIPOLAR, SINGLE ENDED
2 UNIPOLAR, DIFFERENTIAL
3 BIPOLAR, DIFFERENTIAL
uVoltage Pointer to long Returned micro voltage
Return long Error code
ACTIVEX CALL
Long EDREADX.SingleRead (long Channel)
Make sure to set the Gain and Range properties of the ADC ActiveX control. This will in turn
set the range and gain when reading the ADC channel.
Eagle Technology © Copyright 2003 – www.eagledaq.com 23