68
M2i.30xx / M2i.30xx-exp Manual
Setting up the inputs
Analog Inputs
If the card has no user settings one can store the values as the default setting like shown here:
When working with a user setting instead of the default ones, you need to restore your user settings with the help of the SPC_ADJ_LOAD
register as the following example shows.
Read out of input features
The analog inputs of the different cards do have different features implemented, that can be read out to make the software more general. If
you only operate one single card type in your software it is not necessary to read out these features.
Please note that the following table shows all input features settings that are available throughout all Spectrum acquisition cards. Some of
these features are not installed on your specific hardware.
spcm_dwSetParam_i32 (hDrv, SPC_ADJ_AUTOADJ, ADJ_ALL ); // Activate offset adjustment on all channels
spcm_dwSetParam_i32 (hDrv, SPC_ADJ_SAVE, ADJ_DEFAULT); // and store values to default set in the EEPROM
spcm_dwSetParam_i32 (hDrv, SPC_ADJ_LOAD, ADJ_USER0); // and load values to USER0 set in the EEPROM
Register
Value
Direction
Description
SPC_READAIFEATURES
3101
read
Returns a bit map with the available features of the analog input path. The possible return values are
listed below.
SPCM_AI_TERM
00000001h
Programmable input termination available
SPCM_AI_SE
00000002h
Input is single-ended. If available together with SPC_AI_DIFF or SPCM_AI_DIFFMUX: input type is software selectable.
SPCM_AI_DIFF
00000004h
Input is differential. If available together with SPC_AI_SE: input type is software selectable and switching from single-
ended to differential does not reduce the number of active channels by combining two single-ended channels.
SPCM_AI_OFFSPERCENT
00000008h
Input offset programmable in per cent of input range
SPCM_AI_OFFSMV
00000010h
Input offset programmable in mV
SPCM_AI_OVERRANGEDETECT
00000020h
Programmable overrange detection available
SPCM_AI_DCCOUPLING
00000040h
Input is DC coupled. If available together with AC coupling: coupling is software selectable
SPCM_AI_ACCOUPLING
00000080h
Input is AC coupled. If available together with DC coupling: coupling is software selectable
SPCM_AI_LOWPASS
00000100h
Input has a selectable low pass filter (bandwidth limit)
SPCM_AI_DIFFMUX
00000400h
Input is differential. If available together with SPC_AI_SE: input type is software selectable and switching from single-
ended to differential does reduce the number of active channels due to combining two single-ended channels.
SPCM_AI_AUTOCALOFFS
00001000h
Input offset can be auto calibrated on the card
SPCM_AI_AUTOCALGAIN
00002000h
Input gain can be auto calibrated on the card
SPCM_AI_AUTOCALOFFSNOIN
00004000h
Input offset can auto calibrated on the card if inputs are left open
SPCM_AI_INDIVPULSEWIDTH
00010000h
Trigger pulsewidth is individually per channel programmable