
Analog Inputs
Setting up the inputs
(c) Spectrum Instrumentation GmbH
75
Setting up the inputs
Input ranges
This analog acquisition board uses separate input amplifiers and converters on each channel. This gives you the possibility to set up the de
-
sired and concerning your application best suiting input range also separately for each channel. The input ranges can easily be set by the
corresponding input registers. The table below shows the available input registers and possible standard ranges for your type of board. As
there are also modified version availble with different input ranges it is recommended to read out the currently available input ranges as
shown later in this chapter.
Universal software that handles different card types can read out how many different input ranges are available on the actual board for each
channel. This information can be obtained by using the read-only register shown in the table below.
Additionally one can read out the minimum and the maximum value of each input range as shown in the table below. The number of input
ranges is read out with the above shown register.
The following example reads out the number of available input ranges and reads and prints the minimum and maximum value of all input
ranges.
Table 26: Spectrum API: input range register and available input range settings
Register
SPC_AMP0
30010
r/w
Defines the input range of channel0.
SPC_AMP1
30110
r/w
Defines the input range of channel1.
SPC_AMP2
30210
r/w
Defines the input range of channel2.
SPC_AMP3
30310
r/w
Defines the input range of channel3.
SPC_AMP4
30410
r/w
Defines the input range of channel4.
SPC_AMP5
30510
r/w
Defines the input range of channel5.
SPC_AMP6
30610
r/w
Defines the input range of channel6.
SPC_AMP7
30710
r/w
Defines the input range of channel7.
200
± 200 mV calibrated input range for the appropriate channel.
500
± 500 mV calibrated input range for the appropriate channel.
1000
± 1 V calibrated input range for the appropriate channel.
2000
± 2 V calibrated input range for the appropriate channel.
5000
± 5 V calibrated input range for the appropriate channel.
10000
± 10 V calibrated input range for the appropriate channel.
Register
Value
Direction
Description
SPC_READIRCOUNT
3000
read
Informs about the number of the board’s calibrated input ranges.
Table 27: Spectrum API: registers to read the input ranges
Register
Value
Direction
Description
SPC_READRANGEMIN0
4000
read
Gives back the minimum value of input range 0 in mV.
SPC_READRANGEMIN1
4001
read
Gives back the minimum value of input range 1 in mV.
SPC_READRANGEMIN2
4002
read
Gives back the minimum value of input range 2 in mV.
...
...
read
...
SPC_READRANGEMAX0
4100
read
Gives back the maximum value of input range 0 in mV.
SPC_READRANGEMAX1
4101
read
Gives back the maximum value of input range 1 in mV.
SPC_READRANGEMAX2
4102
read
Gives back the maximum value of input range 2 in mV.
...
...
...
...
spcm_dwGetParam_i32 (hDrv, SPC_READIRCOUNT, &lNumberOfRanges);
for (i = 0; i < lNumberOfRanges; i++)
{
spcm_dwGetParam_i32 (hDrv, SPC_READRAN i, &lMinimumInputRage);
spcm_dwGetParam_i32 (hDrv, SPC_READRAN i, &lMaximumInputRange);
printf („Range %d: %d mV to %d mV\n“, i, lMinimumInputRange, lMaximumInputRange);
}
Summary of Contents for M2p.59 Series
Page 190: ......