This class contains front end measurement settings needed for load curves procedure. Front end parameters are represented by the integer value associated to the register binary configuration for that parameter, or by a bool value in case that setting is determined by a single bit. For each parameter 2 different getter exist:
Public Member Functions | |
QLCSlowConfig () | |
constructor | |
QLCSlowConfig (const QLCSlowConfig &config) | |
virtual | ~QLCSlowConfig () |
destructor | |
void | SetInput (bool input) |
set FE input | |
void | Dump (std::ostream &o) const |
dump data on stream | |
bool | operator< (const QLCSlowConfig &other) const |
operator< based on lg | |
bool | operator== (const QLCSlowConfig &other) const |
operator== based on every member except fConfigId | |
unsigned short | GetLg () const |
get logical channel number | |
unsigned short | GetBias () const |
get bias voltage bitwise code | |
float | GetRealBias () const |
get bias voltage in units of volts | |
unsigned short | GetGain () const |
get gain bitwise code | |
float | GetRealGain () const |
get gain in real units | |
bool | GetBiasPolarity () const |
get bias voltage polarity | |
bool | GetLoadResistance () const |
get load resistance | |
float | GetRealLoadResistance () const |
get load resistance (in GigaOhm) | |
unsigned short | GetOffsetDac () const |
get offset dac bits | |
unsigned short | GetOffsetHiBits () const |
get offset Hi bits | |
bool | GetOffsetSBit () const |
get offset dac bits | |
bool | GetOffsetPolarity () const |
get offset polarity | |
float | GetRealOffset () const |
get offset voltage | |
float | GetExternalBias () const |
get nominal value of external bias in Volts | |
float | GetRealExternalBias () const |
get real value of external bias in Volts | |
bool | GetAdjustOffset () const |
get logical channel number | |
unsigned int | GetId () const |
get congif Id | |
bool | GetInput () const |
get input | |
bool | SetLg (const unsigned short lg) |
set logical channel | |
bool | SetBias (const unsigned short bias) |
set bias | |
bool | SetGain (const unsigned short gain) |
set amplifier gain | |
void | SetBiasPolarity (const bool polarity) |
set bias polarity | |
void | SetLoadResistance (const bool resistance) |
set load resistance | |
bool | SetOffset (const unsigned short dacBits, const unsigned short hBits, const bool polarity, const bool sBit) |
set offset bits | |
void | SetAdjustOffset () |
set offset to be adjusted by mean of automatic hw procedure | |
void | SetExternalBias (float externalBias) |
set nominal value of external bias in Volts | |
void | SetRealExternalBias (float realExtBias) |
set real value of external bias in Volts | |
Protected Attributes | |
unsigned short | fLgChannel |
logical channel | |
unsigned int | fConfigId |
unsigned short | fBias |
unsigned short | fGain |
bool | fBiasPolarity |
bool | fLoadResistance |
unsigned short | fOffDac |
unsigned short | fOffHiBits |
bool | fOffSBit |
offset s-bit | |
bool | fOffPolarity |
float | fExternalBias |
float | fRealExternalBias |
bool | fAdjustOffset |
bool | fInput |
Friends | |
class | QLCSlowConfigHandler |
class | QWPSlowConfigHandler |
float QLCSlowConfig::GetRealOffset | ( | ) | const |
get offset voltage
bool QLCSlowConfig::SetGain | ( | const unsigned short | gain | ) |
set amplifier gain
gain | amplifier gain bitwise code |
void QLCSlowConfig::SetBiasPolarity | ( | const bool | polarity | ) | [inline] |
set bias polarity
polarity | bias polarity (true positive, false negative) |
bool QLCSlowConfig::SetOffset | ( | const unsigned short | dacBits, | |
const unsigned short | hBits, | |||
const bool | polarity, | |||
const bool | sBit | |||
) |
set offset bits
dacBits | offset DAC bits between 0 and 4095 | |
hBits | high order bits (0..3) | |
polarity | offset polarity (false=negative, true=positive) | |
sBit | special bit |
void QLCSlowConfig::SetAdjustOffset | ( | ) |
set offset to be adjusted by mean of automatic hw procedure
Calling this function will reset all offset-related quantities that are stored into the object
unsigned int QLCSlowConfig::fConfigId [protected] |
front end settings identifier
unsigned short QLCSlowConfig::fBias [protected] |
front end bias value (0..31)
unsigned short QLCSlowConfig::fGain [protected] |
front end gain value (0..31)
bool QLCSlowConfig::fBiasPolarity [protected] |
front end bias polarity
bool QLCSlowConfig::fLoadResistance [protected] |
load resistance (2 possible values)
unsigned short QLCSlowConfig::fOffDac [protected] |
offset dac bits, 0..4095)
unsigned short QLCSlowConfig::fOffHiBits [protected] |
offset high order bits (0..3)
bool QLCSlowConfig::fOffSBit [protected] |
offset s-bit
this bit adds further ~ +40mV to the offset, no matter what the offset polarity is
bool QLCSlowConfig::fOffPolarity [protected] |
offset polarity
float QLCSlowConfig::fExternalBias [protected] |
nominal external bias voltage
float QLCSlowConfig::fRealExternalBias [protected] |
real external bias voltage
bool QLCSlowConfig::fAdjustOffset [protected] |
used request a call to the automatic offset adjustment procedure to be executed