SciSDK Library
SDK for SciCompiler projects
|
Requires device system update newer than 2024.4.10.1
This two boards have a versatile analog front-end with 32 channels (or 32 channels per DAQ). Each Front-End has configurable gain, offset, impedance, input division and coupling
SciSDK allows to configure the front end of the board from code in a very simple way.
The board expose a node in the device tree called boardapi/analog
that allows to configure the front end of the board.
Pleas remember that the board has a 32 channels front end, but some of the parameters are shared between channels. In the table below you can see the group size column that indicates how many channels share the same parameter.
Parameter | Description | Valid Values | Grouped Channels | Default Value | Example node |
---|---|---|---|---|---|
gain | Gain of the front end | 0, 1, ... 99 | 2 | 0dB (1V/V) | board0:/boardapi/analog/CH0_1.gain |
50r | Impedance of the front end | true, false | 2 | false | board0:/boardapi/analog/CH0_1.50r |
div | Division by five | true, false | 2 | false | board0:/boardapi/analog/CH0_1.div |
offset | Offset of the front end | -32768, ... 32767 | 1 | 0 | board0:/boardapi/analog/CH0.offset |
shaper | Coupling of the front end | dc 1us 10us 30us | 32 | dc | board0:/boardapi/analog.shaper |
The nodes with group size 1 are the ones that are unique for each channel. In order to access to channel CH
you have to access to the node board0:/boardapi/analog/CHx
where x is the number of the channel. For example to access to the offset of channel 3 you have to access to the node board0:/boardapi/analog/CH3.offset
channels with group size 2 groups adjacent channels. In order to access to channel CH
you have to access to the node board0:/boardapi/analog/CHx_x+1
where x is the number of the channel. For example to access to the gain of channel 3 and 4 you have to access to the node board0:/boardapi/analog/CH3_4.gain
The shaper is common for all channels. In order to access to the shaper you have to access to the node board0:/boardapi/analog.shaper
Once you have set the parameters you have to execute the command board0:/boardapi/configure
to apply the configuration.