66
M2i.30xx / M2i.30xx-exp Manual
Setting up the inputs
Analog Inputs
Input offset
In most cases the external signals will not be symmetrically re-
lated to ground. If you want to acquire such asymmetrical sig-
nals, it is possible to use the smallest input range that matches
the biggest absolute signal amplitude without exceeding the
range.
The figure at the right shows this possibility. But in this exam-
ple you would leave half of the possible resolution unused.
It is much more efficient if you shift the signal on-board to be
as symmetrical as possible and to acquire it within the best
possible range.
This results in a much better use of the converters resolution.
On this acquisition boards from Spectrum you have the pos-
sibility to adjust the input offset separately for each channel.
The example in the right figure shows signals with a
range of ±1.0 V that have offsets up to ±1.0 V. So relat-
ed to the desired input range these signals have offsets
of ±100 %.
For compensating such offsets you can use the offset reg-
ister for each channel separately. If you want to compen-
sate the +100 % offset of the outer left signal, you would
have to set the offset to -100 % to compensate it.
As the offset levels are relatively to the related input
range, you have to calculate and set your offset again
when changing the input’s range.
The table below shows the offset registers and the possi-
ble offset ranges for your specific type of board.
When writing a program that should run with different board families it is useful to just read-out the possible offset than can be programmed.
You can use the following read only register to get the possible programmable offset range in percent
To give you an example how the registers of the input range and the input offset are to be used, the following example shows a setup to
match all of the four signals in the second input offset figure to match the desired input range. Therefore every one of the four channels is set
to the input range of ± 1.0 V. After that the four offset settings are set exactly as the offsets to be compensated, but with the opposite sign.
The result is, that all four channels perfectly match the chosen input range.
Register
Value
Direction
Description
Offset range
SPC_OFFS0
30000
r/w
Defines the input’s offset and therfore shifts the input of channel0.
± 100 % in steps of 1 %
SPC_OFFS1
30100
r/w
Defines the input’s offset and therfore shifts the input of channel1.
± 100 % in steps of 1 %
SPC_OFFS2
30200
r/w
Defines the input’s offset and therfore shifts the input of channel2.
± 100 % in steps of 1 %
SPC_OFFS3
30300
r/w
Defines the input’s offset and therfore shifts the input of channel3.
± 100 % in steps of 1 %
Register
Value
Direction
Description
SPC_READOFFSMIN0
4200
read
Minimum programmable offset for input range 0 in percent
SPC_READOFFSMAX0
4100
read
Maximum programmable offset for input range 0 in percent
SPC_READOFFSMIN1
4201
read
Minimum programmable offset for input range 1 in percent
SPC_READOFFSMAX1
4101
read
Maximum programmable offset for input range 1 in percent
..
...
...
...