![]() |
CROSS Technical Documentation User Manual and Technical Doc.
INFN Milano Bicocca
|
void instr_ouput_offset_we_want_to_set_function | ( | void | ) |
The preamplifier offset will be set at the value passed from the CAN with this function if, after this setting, it is launched instr_Vbias_to_be_set_function().
The first 2 bytes of the CAN bus message are the voltage setting in mV. Byte_6 is for which channel the voltage is to be set. The same voltage can be the same for several channels. The voltage is applied if the corresponding bit of Byte_6 is 1, ie if bit_2 is 1, than the voltage is applied to channel 1, if bit_1 and bit_5 are 1 then the same voltage is applied for both channles 1 and 5. Run the command several times if the targety is different among the channles. These values are stored in the vector Detector_bias_target[12]. Only positive values are accepted and the voltage is considered the total bias voltage, namely Voltage==Vbias_pos - Vbias_neg, symmetric.
Definition at line 227 of file Preamplifier_Offset_Drift_Correcttion.c.