QSlowControlClient Class Reference
[Networking]

Inheritance diagram for QSlowControlClient:

QBaseClient QApolloSocketClient

List of all members.


Detailed Description

class used to hide client-side network communication with slow server

Author:
sergio.didomizio@ge.infn.it

Public Member Functions

 QSlowControlClient ()
 empty constructor
 QSlowControlClient (const std::string &address, const std::string &port)
 constructor
bool SetWriteMode (bool canWrite)
 set write mode
bool SetBaseMode ()
 set server mode to "base"
bool SetRunMode ()
 set server mode to "run"
bool SetTuningMode (unsigned int basket)
 set server mode to "tuning"
bool GetMode (QSlowTypes::QSlowMode_t &mode)
 get current slow server mode
bool GetBasket (int &basket)
 Get current settings basket.
bool LoadDevice (QSlowTypes::QSlowDevice_t dev, QSlowTypes::QSlowEleInterface_t iface)
 Load the specified device controller using the specified communication interface.
bool GetInterface (QSlowTypes::QSlowDevice_t dev, QSlowTypes::QSlowEleInterface_t &iface)
 Get used interface for the specified device controller.
bool GetFEInterface (QSlowTypes::QSlowEleInterface_t &iface)
 Get front-end interface.
bool GetBSInterface (QSlowTypes::QSlowEleInterface_t &iface)
 Get Bessel interface.
bool GetPSInterface (QSlowTypes::QSlowEleInterface_t &iface)
 Get Pulser interface.
bool SetFEInterface (QSlowTypes::QSlowEleInterface_t iface)
 Load the Front-End controller using the specified communication interface.
bool SetBSInterface (QSlowTypes::QSlowEleInterface_t iface)
 Load the Bessel controller using the specified communication interface.
bool SetPSInterface (QSlowTypes::QSlowEleInterface_t iface)
 Load the pulser controlled using the specified communication interface.
bool WritePulser (unsigned int pulseId, char mem0, char mem1, char mem2, char mem3)
 write pulser registers
bool GetPulserRegister (unsigned int id, size_t reg, int &value)
 Get Pulser register.
bool SetEleRegister (unsigned int lg, size_t reg, int value)
 set Front End or Bessel register
bool GetEleRegister (unsigned int lg, size_t reg, int &value)
 Get Front End or Bessel register.
bool SetFEGain (unsigned int lg, int value)
 set Front End bias
bool GetFEGain (unsigned int lg, int &value)
 get Front End Gain
bool SetFEBias (unsigned int lg, int value)
 set Front End Gain
bool GetFEBias (unsigned int lg, int &value)
 get Front End bias
bool GetFEBiasPolarity (unsigned int lg, bool &pol)
 get Front End bias polarity
bool SetFEBiasPolarity (unsigned int lg, bool pol)
 set Front End bias polarity
bool InvertFEBiasPolarity (unsigned int lg)
 invert Front End bias polarity
bool SetFELoadResistor (unsigned int lg, bool rload)
 set Front End load resitor value.
bool GetFELoadResistor (unsigned int lg, bool &rload)
 get Front End load resitor value.
bool SetFEInput (unsigned int lg, bool input)
 set Front End input.
bool GetFEInput (unsigned int lg, bool &input)
 get Front End input.
bool SetFETestSignal (unsigned int lg, int pos_val, int neg_val)
 when the input in connected to the test signal generator set the test signal voltage (positive and negatice)
bool GetFETestSignal (unsigned int lg, int &pos_val, int &neg_val)
 when the input in connected to the test signal generator get the test signal voltage (positive and negatice)
bool AdjustFEOffset (unsigned int lg)
 adjust baseline baseline
bool SetFEOffsetDAC (unsigned int lg, int value)
 write the offset DAC on the Front End.
bool GetFEOffsetDAC (unsigned int lg, int &value)
 read the offset DAC from the Front End
bool SetFEOffsetMSB (unsigned int lg, int value)
 write the offset MSBs on the Front End .
bool GetFEOffsetMSB (unsigned int lg, int &value)
 read offset MSBs from the Front End
bool GetFEOffsetPolarity (unsigned int lg, bool &pol)
 get Front End offset polarity
bool SetFEOffsetPolarity (unsigned int lg, bool pol)
 set Front End offset polarity
bool InvertFEOffsetPolarity (unsigned int lg)
 invert Front End offset polarity
bool GetFEOffsetSpecialBit (unsigned int lg, bool &status)
 get Front End offset special bit
bool SetFEOffsetSpecialBit (unsigned int lg, bool status)
 set Front End offset special bit
bool InvertFEOffsetSpecialBit (unsigned int lg)
 invert Front End offset special bit
bool SetBSCutFreq (unsigned int lg, int cutFreq)
 set the cut frequency on the Bessel.
bool GetBSCutFreq (unsigned int lg, int &cutFreq)
 get the frequency from the Bessel.
bool SetBSFilterEnable (unsigned int lg, bool status)
 set Filter enable Status
bool GetBSFilterEnable (unsigned int lg, bool &status)
 get Filter enable Status
bool TurnBSFilterON (unsigned int lg)
 enable Filter
bool TurnBSFilterOFF (unsigned int lg)
 Disable Filter.
bool SetPSupplyInterface (QSlowTypes::QSlowEleInterface_t iface)
 Load the Power Supply controller using the specified communication interface.
bool GetPSupplyInterface (QSlowTypes::QSlowEleInterface_t &iface)
 Get power supply interface.
bool SetPSupplyVset (unsigned int channel, double vset)
 set power supply voltage
bool SetPSupplyIset (unsigned int channel, double iset)
 set power supply current
bool SetPSupplyVsetDiff (double vset)
 set power supply differential voltage vset
bool GetPSupplyVsetDiff (double &vset)
 get power supply differential voltage vset
bool GetPSupplyVoutDiff (double &vout)
 get power supply differential voltage vset
bool GetPSupplyVset (unsigned int channel, double &vset)
 get power supply voltage set
bool GetPSupplyIset (unsigned int channel, double &iset)
 get power supply current set
bool GetPSupplyVout (unsigned int channel, double &vout)
 get power supply output voltage
bool GetPSupplyIout (unsigned int channel, double &iout)
 get power supply output current
bool SetPSupplyOutputEnable (unsigned int channel, bool status)
 set power supply output enable
bool GetPSupplyOutputEnable (unsigned int channel, bool &status)
 get power supply output enable
bool TurnPSupplyOutputON (unsigned int channel)
 enable power supply output
bool TurnPSupplyOutputOFF (unsigned int channel)
 disable power supply output

Member Function Documentation

bool QSlowControlClient::SetWriteMode ( bool  canWrite  ) 

set write mode

Parameters:
canWrite true if write mode is on, false if it is off
Returns:
true on success, false on failure. In case of failure, QError is set to something different from QERR_SUCCESS and can be retrieved by mean of GetError().

References QBaseClient::ExecCommand(), QNwMessageBuilder::SetCommand(), and QNwMessageBuilder::SetParameter().

Referenced by ApplyElectronicsConfiguration(), QWPSlowConfigHandler::CheckSlowStatus(), QLCSlowConfigHandler::CheckSlowStatus(), QPulserSingleShot::Fire(), QEleInterface::InitClient(), and QBasePulserController::InitSlowClient().

bool QSlowControlClient::SetBaseMode (  ) 

set server mode to "base"

Returns:
true on success, false on failure. In case of failure, QError is set to something different from QERR_SUCCESS and can be retrieved by mean of GetError().

References QBaseClient::ExecCommand(), QNwMessageBuilder::SetCommand(), and QNwMessageBuilder::SetParameter().

bool QSlowControlClient::SetRunMode (  ) 

set server mode to "run"

Returns:
true on success, false on failure. In case of failure, QError is set to something different from QERR_SUCCESS and can be retrieved by mean of GetError().

References QBaseClient::ExecCommand(), QNwMessageBuilder::SetCommand(), and QNwMessageBuilder::SetParameter().

bool QSlowControlClient::SetTuningMode ( unsigned int  basket  ) 

set server mode to "tuning"

Parameters:
basket db settings basket to be loaded
Returns:
true on success, false on failure. In case of failure, QError is set to something different from QERR_SUCCESS and can be retrieved by mean of GetError().

References QBaseClient::ExecCommand(), QStringHandler::IntToString(), QNwMessageBuilder::SetCommand(), and QNwMessageBuilder::SetParameter().

Referenced by QWPSlowConfigHandler::CheckSlowStatus(), QLCSlowConfigHandler::CheckSlowStatus(), QPulserSingleShot::Fire(), QEleInterface::InitClient(), and QBasePulserController::InitSlowClient().

bool QSlowControlClient::GetMode ( QSlowTypes::QSlowMode_t &  mode  ) 

get current slow server mode

Parameters:
mode this variable is set to current server mode
Returns:
true on success, false on failure. In case of failure, QError is set to something different from QERR_SUCCESS and can be retrieved by mean of GetError().

References QBaseClient::ExecCommand(), QBaseClient::GetString(), QError::Set(), QNwMessageBuilder::SetCommand(), and QNwMessageBuilder::SetModifier().

Referenced by QWPSlowConfigHandler::CheckSlowStatus(), QLCSlowConfigHandler::CheckSlowStatus(), QPulserSingleShot::Fire(), QEleInterface::InitClient(), and QBasePulserController::InitSlowClient().

bool QSlowControlClient::GetBasket ( int &  basket  ) 

Get current settings basket.

Parameters:
basket this variable is set to current settings basket
Returns:
true on success, false on failure. In case of failure, QError is set to something different from QERR_SUCCESS and can be retrieved by mean of GetError().

References QBaseClient::ExecCommand(), QBaseClient::GetInt(), QNwMessageBuilder::SetCommand(), and QNwMessageBuilder::SetModifier().

Referenced by QWPSlowConfigHandler::CheckSlowStatus(), QLCSlowConfigHandler::CheckSlowStatus(), QPulserSingleShot::Fire(), QEleInterface::InitClient(), and QBasePulserController::InitSlowClient().

bool QSlowControlClient::LoadDevice ( QSlowTypes::QSlowDevice_t  dev,
QSlowTypes::QSlowEleInterface_t  iface 
)

Load the specified device controller using the specified communication interface.

Parameters:
dev device to load
iface used communication interface
Returns:
true on success, false on failure. In case of failure, QError is set to something different from QERR_SUCCESS and can be retrieved by mean of GetError().

References QBaseClient::ExecCommand(), QNwMessageBuilder::SetCommand(), and QNwMessageBuilder::SetParameter().

Referenced by QLCSlowConfigHandler::Clear(), QPulserSingleShot::Fire(), QBasePulserController::InitSlowClient(), QWPSlowConfigHandler::QWPSlowConfigHandler(), SetBSInterface(), SetFEInterface(), SetPSInterface(), and SetPSupplyInterface().

bool QSlowControlClient::GetInterface ( QSlowTypes::QSlowDevice_t  dev,
QSlowTypes::QSlowEleInterface_t &  iface 
)

Get used interface for the specified device controller.

Parameters:
dev device
iface returned communication interface
Returns:
true on success, false on failure. In case of failure, QError is set to something different from QERR_SUCCESS and can be retrieved by mean of GetError().

References QBaseClient::ExecCommand(), QBaseClient::GetString(), QError::Set(), QNwMessageBuilder::SetCommand(), QNwMessageBuilder::SetModifier(), and QNwMessageBuilder::SetParameter().

Referenced by GetBSInterface(), GetFEInterface(), GetPSInterface(), and GetPSupplyInterface().

bool QSlowControlClient::GetFEInterface ( QSlowTypes::QSlowEleInterface_t &  iface  ) 

Get front-end interface.

Parameters:
iface current communication interface
Returns:
true on success, false on failure. In case of failure, QError is set to something different from QERR_SUCCESS and can be retrieved by mean of GetError().

References GetInterface().

bool QSlowControlClient::GetBSInterface ( QSlowTypes::QSlowEleInterface_t &  iface  ) 

Get Bessel interface.

Parameters:
iface current communication interface
Returns:
true on success, false on failure. In case of failure, QError is set to something different from QERR_SUCCESS and can be retrieved by mean of GetError().

References GetInterface().

bool QSlowControlClient::GetPSInterface ( QSlowTypes::QSlowEleInterface_t &  iface  ) 

Get Pulser interface.

Parameters:
iface current communication interface
Returns:
true on success, false on failure. In case of failure, QError is set to something different from QERR_SUCCESS and can be retrieved by mean of GetError().

References GetInterface().

bool QSlowControlClient::SetFEInterface ( QSlowTypes::QSlowEleInterface_t  iface  ) 

Load the Front-End controller using the specified communication interface.

Parameters:
iface used communication interface
Returns:
true on success, false on failure. In case of failure, QError is set to something different from QERR_SUCCESS and can be retrieved by mean of GetError().

References LoadDevice().

bool QSlowControlClient::SetBSInterface ( QSlowTypes::QSlowEleInterface_t  iface  ) 

Load the Bessel controller using the specified communication interface.

Parameters:
iface used communication interface
Returns:
true on success, false on failure. In case of failure, QError is set to something different from QERR_SUCCESS and can be retrieved by mean of GetError().

References LoadDevice().

bool QSlowControlClient::SetPSInterface ( QSlowTypes::QSlowEleInterface_t  iface  ) 

Load the pulser controlled using the specified communication interface.

Parameters:
iface used communication interface
Returns:
true on success, false on failure. In case of failure, QError is set to something different from QERR_SUCCESS and can be retrieved by mean of GetError().

References LoadDevice().

bool QSlowControlClient::WritePulser ( unsigned int  pulseId,
char  mem0,
char  mem1,
char  mem2,
char  mem3 
)

write pulser registers

Parameters:
pulseId pulser id as found in db
mem0 mem0 (1 byte)
mem0 mem1 (1 byte)
mem0 mem2 (1 byte)
mem0 mem3 (1 byte)
Returns:
true on success, false on failure. In case of failure, QError is set to something different from QERR_SUCCESS and can be retrieved by mean of GetError().

References QNwMessageBuilder::Clear(), QBaseClient::ExecCommand(), QStringHandler::IntToHexString(), QStringHandler::IntToString(), QNwMessageBuilder::SetCommand(), and QNwMessageBuilder::SetParameter().

Referenced by QPulserSingleShot::Fire().

bool QSlowControlClient::GetPulserRegister ( unsigned int  id,
size_t  reg,
int &  value 
)

Get Pulser register.

Parameters:
reg register to be get
value,register get value
Returns:
true on success, false on failure. In case of failure, QError is set to something different from QERR_SUCCESS and can be retrieved by mean of GetError().

References QBaseClient::ExecCommand(), QBaseClient::GetInt(), QStringHandler::IntToString(), QError::Set(), QNwMessageBuilder::SetCommand(), QNwMessageBuilder::SetModifier(), and QNwMessageBuilder::SetParameter().

bool QSlowControlClient::SetEleRegister ( unsigned int  lg,
size_t  reg,
int  value 
)

set Front End or Bessel register

Parameters:
reg register to be set
value value to be loaded
Returns:
true on success, false on failure. In case of failure, QError is set to something different from QERR_SUCCESS and can be retrieved by mean of GetError().

References QBaseClient::ExecCommand(), QStringHandler::IntToString(), QError::Set(), QNwMessageBuilder::SetCommand(), and QNwMessageBuilder::SetParameter().

bool QSlowControlClient::GetEleRegister ( unsigned int  lg,
size_t  reg,
int &  value 
)

Get Front End or Bessel register.

Parameters:
reg register to be set
value,register get value
Returns:
true on success, false on failure. In case of failure, QError is set to something different from QERR_SUCCESS and can be retrieved by mean of GetError().

References QBaseClient::ExecCommand(), QBaseClient::GetInt(), QStringHandler::IntToString(), QError::Set(), QNwMessageBuilder::SetCommand(), QNwMessageBuilder::SetModifier(), and QNwMessageBuilder::SetParameter().

bool QSlowControlClient::SetFEGain ( unsigned int  lg,
int  value 
)

set Front End bias

Parameters:
value this variable is bias value to be loaded
Returns:
true on success, false on failure. In case of failure, QError is set to something different from QERR_SUCCESS and can be retrieved by mean of GetError().

References QBaseClient::ExecCommand(), QStringHandler::IntToString(), QNwMessageBuilder::SetCommand(), and QNwMessageBuilder::SetParameter().

Referenced by QWPSlowConfigHandler::ApplyConfig(), QLCSlowConfigHandler::ApplyConfig(), and QEleInterface::WriteChannel().

bool QSlowControlClient::GetFEGain ( unsigned int  lg,
int &  value 
)

get Front End Gain

Parameters:
value this variable is set to the get gain value
Returns:
true on success, false on failure. In case of failure, QError is set to something different from QERR_SUCCESS and can be retrieved by mean of GetError().

References QBaseClient::ExecCommand(), QBaseClient::GetInt(), QStringHandler::IntToString(), QNwMessageBuilder::SetCommand(), QNwMessageBuilder::SetModifier(), and QNwMessageBuilder::SetParameter().

Referenced by QEleInterface::ReadHardware().

bool QSlowControlClient::SetFEBias ( unsigned int  lg,
int  value 
)

set Front End Gain

Parameters:
value this variable is the gain value to be loaded
Returns:
true on success, false on failure. In case of failure, QError is set to something different from QERR_SUCCESS and can be retrieved by mean of GetError().

References QBaseClient::ExecCommand(), QStringHandler::IntToString(), QNwMessageBuilder::SetCommand(), and QNwMessageBuilder::SetParameter().

Referenced by QWPSlowConfigHandler::ApplyConfig(), QLCSlowConfigHandler::ApplyConfig(), and QEleInterface::WriteChannel().

bool QSlowControlClient::GetFEBias ( unsigned int  lg,
int &  value 
)

get Front End bias

Parameters:
value this variable is set to the get bias value
Returns:
true on success, false on failure. In case of failure, QError is set to something different from QERR_SUCCESS and can be retrieved by mean of GetError().

References QBaseClient::ExecCommand(), QBaseClient::GetInt(), QStringHandler::IntToString(), QNwMessageBuilder::SetCommand(), QNwMessageBuilder::SetModifier(), and QNwMessageBuilder::SetParameter().

Referenced by QEleInterface::ReadHardware().

bool QSlowControlClient::GetFEBiasPolarity ( unsigned int  lg,
bool &  pol 
)

get Front End bias polarity

Parameters:
pol this variable is set to the get bias polarity
Returns:
true on success, false on failure. In case of failure, QError is set to something different from QERR_SUCCESS and can be retrieved by mean of GetError().

References QBaseClient::ExecCommand(), QBaseClient::GetBool(), QStringHandler::IntToString(), QNwMessageBuilder::SetCommand(), QNwMessageBuilder::SetModifier(), and QNwMessageBuilder::SetParameter().

Referenced by InvertFEBiasPolarity(), and QEleInterface::ReadHardware().

bool QSlowControlClient::SetFEBiasPolarity ( unsigned int  lg,
bool  pol 
)

set Front End bias polarity

Parameters:
pol,this variable is the bias polarity to be loaded
Returns:
true on success, false on failure. In case of failure, QError is set to something different from QERR_SUCCESS and can be retrieved by mean of GetError().

References QBaseClient::ExecCommand(), QStringHandler::IntToString(), QNwMessageBuilder::SetCommand(), and QNwMessageBuilder::SetParameter().

Referenced by QWPSlowConfigHandler::ApplyConfig(), QLCSlowConfigHandler::ApplyConfig(), InvertFEBiasPolarity(), and QEleInterface::WriteChannel().

bool QSlowControlClient::InvertFEBiasPolarity ( unsigned int  lg  ) 

invert Front End bias polarity

Returns:
true on success, false on failure. In case of failure, QError is set to something different from QERR_SUCCESS and can be retrieved by mean of GetError().

References GetFEBiasPolarity(), and SetFEBiasPolarity().

bool QSlowControlClient::SetFELoadResistor ( unsigned int  lg,
bool  rload 
)

set Front End load resitor value.

Parameters:
rload this variable is the load resistor value to be loaded
Returns:
true on success, false on failure. In case of failure, QError is set to something different from QERR_SUCCESS and can be retrieved by mean of GetError().

References QBaseClient::ExecCommand(), QStringHandler::IntToString(), QNwMessageBuilder::SetCommand(), and QNwMessageBuilder::SetParameter().

Referenced by QWPSlowConfigHandler::ApplyConfig(), QLCSlowConfigHandler::ApplyConfig(), and QEleInterface::WriteChannel().

bool QSlowControlClient::GetFELoadResistor ( unsigned int  lg,
bool &  rload 
)

get Front End load resitor value.

Parameters:
rload this variable is set to the get load reistance
Returns:
true on success, false on failure. In case of failure, QError is set to something different from QERR_SUCCESS and can be retrieved by mean of GetError().

References QBaseClient::ExecCommand(), QBaseClient::GetBool(), QStringHandler::IntToString(), QNwMessageBuilder::SetCommand(), QNwMessageBuilder::SetModifier(), and QNwMessageBuilder::SetParameter().

Referenced by QEleInterface::ReadHardware().

bool QSlowControlClient::SetFEInput ( unsigned int  lg,
bool  input 
)

set Front End input.

Parameters:
input this variable specified the selected input (bolometer or test signal)
Returns:
true on success, false on failure. In case of failure, QError is set to something different from QERR_SUCCESS and can be retrieved by mean of GetError().

References QBaseClient::ExecCommand(), QStringHandler::IntToString(), QNwMessageBuilder::SetCommand(), and QNwMessageBuilder::SetParameter().

Referenced by QWPSlowConfigHandler::ApplyConfig(), and QEleInterface::WriteChannel().

bool QSlowControlClient::GetFEInput ( unsigned int  lg,
bool &  input 
)

get Front End input.

Parameters:
input this variable is set with the current selected input (bolometer or test signal
Returns:
true on success, false on failure. In case of failure, QError is set to something different from QERR_SUCCESS and can be retrieved by mean of GetError().

References QBaseClient::ExecCommand(), QBaseClient::GetBool(), QStringHandler::IntToString(), QNwMessageBuilder::SetCommand(), QNwMessageBuilder::SetModifier(), and QNwMessageBuilder::SetParameter().

Referenced by QEleInterface::ReadHardware().

bool QSlowControlClient::SetFETestSignal ( unsigned int  lg,
int  pos_val,
int  neg_val 
)

when the input in connected to the test signal generator set the test signal voltage (positive and negatice)

Parameters:
pos_val positive value
neg_val negative value
Returns:
true on success, false on failure. In case of failure, QError is set to something different from QERR_SUCCESS and can be retrieved by mean of GetError().

References QNwMessageBuilder::Clear(), QBaseClient::ExecCommand(), QStringHandler::IntToString(), QNwMessageBuilder::SetCommand(), and QNwMessageBuilder::SetParameter().

Referenced by QWPSlowConfigHandler::ApplyConfig(), and QEleInterface::WriteChannel().

bool QSlowControlClient::GetFETestSignal ( unsigned int  lg,
int &  pos_val,
int &  neg_val 
)

when the input in connected to the test signal generator get the test signal voltage (positive and negatice)

Parameters:
pos_val this variable is set with the current positive value
neg_val this variable is set with the current negative value
Returns:
true on success, false on failure. In case of failure, QError is set to something different from QERR_SUCCESS and can be retrieved by mean of GetError().

References QNwMessageBuilder::Clear(), QBaseClient::ExecCommand(), QBaseClient::GetInt(), QStringHandler::IntToString(), QNwMessageBuilder::SetCommand(), QNwMessageBuilder::SetModifier(), and QNwMessageBuilder::SetParameter().

Referenced by QEleInterface::ReadHardware().

bool QSlowControlClient::AdjustFEOffset ( unsigned int  lg  ) 

adjust baseline baseline

Returns:
true on success, false on failure. In case of failure, QError is set to something different from QERR_SUCCESS and can be retrieved by mean of GetError().

References QBaseClient::ExecCommand(), QStringHandler::IntToString(), QNwMessageBuilder::SetCommand(), QNwMessageBuilder::SetModifier(), and QNwMessageBuilder::SetParameter().

Referenced by QWPSlowConfigHandler::ApplyConfig(), and QLCSlowConfigHandler::ApplyConfig().

bool QSlowControlClient::SetFEOffsetDAC ( unsigned int  lg,
int  value 
)

write the offset DAC on the Front End.

Parameters:
value,value to be loaded
Returns:
true on success, false on failure. In case of failure, QError is set to something different from QERR_SUCCESS and can be retrieved by mean of GetError().

References QBaseClient::ExecCommand(), QStringHandler::IntToString(), QNwMessageBuilder::SetCommand(), and QNwMessageBuilder::SetParameter().

Referenced by QWPSlowConfigHandler::ApplyConfig(), QLCSlowConfigHandler::ApplyConfig(), and QEleInterface::WriteChannel().

bool QSlowControlClient::GetFEOffsetDAC ( unsigned int  lg,
int &  value 
)

read the offset DAC from the Front End

Parameters:
value,value get
Returns:
true on success, false on failure. In case of failure, QError is set to something different from QERR_SUCCESS and can be retrieved by mean of GetError().

References QBaseClient::ExecCommand(), QBaseClient::GetInt(), QStringHandler::IntToString(), QNwMessageBuilder::SetCommand(), QNwMessageBuilder::SetModifier(), and QNwMessageBuilder::SetParameter().

Referenced by QWPSlowConfigHandler::ApplyConfig(), QLCSlowConfigHandler::ApplyConfig(), and QEleInterface::ReadHardware().

bool QSlowControlClient::SetFEOffsetMSB ( unsigned int  lg,
int  value 
)

write the offset MSBs on the Front End .

Parameters:
value,DAC value to be loaded
Returns:
true on success, false on failure. In case of failure, QError is set to something different from QERR_SUCCESS and can be retrieved by mean of GetError().

References QBaseClient::ExecCommand(), QStringHandler::IntToString(), QNwMessageBuilder::SetCommand(), and QNwMessageBuilder::SetParameter().

Referenced by QWPSlowConfigHandler::ApplyConfig(), QLCSlowConfigHandler::ApplyConfig(), and QEleInterface::WriteChannel().

bool QSlowControlClient::GetFEOffsetMSB ( unsigned int  lg,
int &  value 
)

read offset MSBs from the Front End

Parameters:
value,value get
Returns:
true on success, false on failure. In case of failure, QError is set to something different from QERR_SUCCESS and can be retrieved by mean of GetError().

References QBaseClient::ExecCommand(), QBaseClient::GetInt(), QStringHandler::IntToString(), QNwMessageBuilder::SetCommand(), QNwMessageBuilder::SetModifier(), and QNwMessageBuilder::SetParameter().

Referenced by QWPSlowConfigHandler::ApplyConfig(), QLCSlowConfigHandler::ApplyConfig(), and QEleInterface::ReadHardware().

bool QSlowControlClient::GetFEOffsetPolarity ( unsigned int  lg,
bool &  pol 
)

get Front End offset polarity

Parameters:
pol this variable is set to the get bias polarity
Returns:
true on success, false on failure. In case of failure, QError is set to something different from QERR_SUCCESS and can be retrieved by mean of GetError().

References QBaseClient::ExecCommand(), QBaseClient::GetBool(), QStringHandler::IntToString(), QNwMessageBuilder::SetCommand(), QNwMessageBuilder::SetModifier(), and QNwMessageBuilder::SetParameter().

Referenced by QWPSlowConfigHandler::ApplyConfig(), QLCSlowConfigHandler::ApplyConfig(), InvertFEOffsetPolarity(), InvertFEOffsetSpecialBit(), and QEleInterface::ReadHardware().

bool QSlowControlClient::SetFEOffsetPolarity ( unsigned int  lg,
bool  pol 
)

set Front End offset polarity

Parameters:
pol,this variable is the bias polarity to be loaded
Returns:
true on success, false on failure. In case of failure, QError is set to something different from QERR_SUCCESS and can be retrieved by mean of GetError().

References QBaseClient::ExecCommand(), QStringHandler::IntToString(), QNwMessageBuilder::SetCommand(), and QNwMessageBuilder::SetParameter().

Referenced by QWPSlowConfigHandler::ApplyConfig(), QLCSlowConfigHandler::ApplyConfig(), InvertFEOffsetPolarity(), and QEleInterface::WriteChannel().

bool QSlowControlClient::InvertFEOffsetPolarity ( unsigned int  lg  ) 

invert Front End offset polarity

Returns:
true on success, false on failure. In case of failure, QError is set to something different from QERR_SUCCESS and can be retrieved by mean of GetError().

References GetFEOffsetPolarity(), and SetFEOffsetPolarity().

bool QSlowControlClient::GetFEOffsetSpecialBit ( unsigned int  lg,
bool &  status 
)

get Front End offset special bit

Parameters:
pol this variable is set to the get special bit
Returns:
true on success, false on failure. In case of failure, QError is set to something different from QERR_SUCCESS and can be retrieved by mean of GetError().

References QBaseClient::ExecCommand(), QBaseClient::GetBool(), QStringHandler::IntToString(), QNwMessageBuilder::SetCommand(), QNwMessageBuilder::SetModifier(), and QNwMessageBuilder::SetParameter().

Referenced by QWPSlowConfigHandler::ApplyConfig(), QLCSlowConfigHandler::ApplyConfig(), and QEleInterface::ReadHardware().

bool QSlowControlClient::SetFEOffsetSpecialBit ( unsigned int  lg,
bool  status 
)

set Front End offset special bit

Parameters:
pol,this variable is the special bit to be loaded
Returns:
true on success, false on failure. In case of failure, QError is set to something different from QERR_SUCCESS and can be retrieved by mean of GetError().

References QBaseClient::ExecCommand(), QStringHandler::IntToString(), QNwMessageBuilder::SetCommand(), and QNwMessageBuilder::SetParameter().

Referenced by QWPSlowConfigHandler::ApplyConfig(), QLCSlowConfigHandler::ApplyConfig(), InvertFEOffsetSpecialBit(), and QEleInterface::WriteChannel().

bool QSlowControlClient::InvertFEOffsetSpecialBit ( unsigned int  lg  ) 

invert Front End offset special bit

Returns:
true on success, false on failure. In case of failure, QError is set to something different from QERR_SUCCESS and can be retrieved by mean of GetError().

References GetFEOffsetPolarity(), and SetFEOffsetSpecialBit().

bool QSlowControlClient::SetBSCutFreq ( unsigned int  lg,
int  cutFreq 
)

set the cut frequency on the Bessel.

Parameters:
value,cut frequency value to be loaded
Returns:
true on success, false on failure. In case of failure, QError is set to something different from QERR_SUCCESS and can be retrieved by mean of GetError().

References QBaseClient::ExecCommand(), QStringHandler::IntToString(), QNwMessageBuilder::SetCommand(), and QNwMessageBuilder::SetParameter().

bool QSlowControlClient::GetBSCutFreq ( unsigned int  lg,
int &  cutFreq 
)

get the frequency from the Bessel.

Parameters:
value,cut frequency value get from the Bessel
Returns:
true on success, false on failure. In case of failure, QError is set to something different from QERR_SUCCESS and can be retrieved by mean of GetError().

References QBaseClient::ExecCommand(), QBaseClient::GetInt(), QStringHandler::IntToString(), QNwMessageBuilder::SetCommand(), QNwMessageBuilder::SetModifier(), and QNwMessageBuilder::SetParameter().

bool QSlowControlClient::SetBSFilterEnable ( unsigned int  lg,
bool  status 
)

set Filter enable Status

Parameters:
pol,this variable is the enable status to be loaded
Returns:
true on success, false on failure. In case of failure, QError is set to something different from QERR_SUCCESS and can be retrieved by mean of GetError().

References QBaseClient::ExecCommand(), QStringHandler::IntToString(), QNwMessageBuilder::SetCommand(), and QNwMessageBuilder::SetParameter().

Referenced by TurnBSFilterOFF(), and TurnBSFilterON().

bool QSlowControlClient::GetBSFilterEnable ( unsigned int  lg,
bool &  status 
)

get Filter enable Status

Parameters:
pol,filter enable status get from the Bessel
Returns:
true on success, false on failure. In case of failure, QError is set to something different from QERR_SUCCESS and can be retrieved by mean of GetError().

References QBaseClient::ExecCommand(), QBaseClient::GetBool(), QStringHandler::IntToString(), QNwMessageBuilder::SetCommand(), QNwMessageBuilder::SetModifier(), and QNwMessageBuilder::SetParameter().

bool QSlowControlClient::TurnBSFilterON ( unsigned int  lg  ) 

enable Filter

Returns:
true on success, false on failure. In case of failure, QError is set to something different from QERR_SUCCESS and can be retrieved by mean of GetError().

References SetBSFilterEnable().

bool QSlowControlClient::TurnBSFilterOFF ( unsigned int  lg  ) 

Disable Filter.

Returns:
true on success, false on failure. In case of failure, QError is set to something different from QERR_SUCCESS and can be retrieved by mean of GetError().

References SetBSFilterEnable().

bool QSlowControlClient::SetPSupplyInterface ( QSlowTypes::QSlowEleInterface_t  iface  ) 

Load the Power Supply controller using the specified communication interface.

Parameters:
iface used communication interface
Returns:
true on success, false on failure. In case of failure, QError is set to something different from QERR_SUCCESS and can be retrieved by mean of GetError().

References LoadDevice().

bool QSlowControlClient::GetPSupplyInterface ( QSlowTypes::QSlowEleInterface_t &  iface  ) 

Get power supply interface.

Parameters:
iface current communication interface
Returns:
true on success, false on failure. In case of failure, QError is set to something different from QERR_SUCCESS and can be retrieved by mean of GetError().

References GetInterface().

bool QSlowControlClient::SetPSupplyVset ( unsigned int  channel,
double  vset 
)

set power supply voltage

Parameters:
vset,returned output voltage
Returns:
true on success, false on failure. In case of failure, QError is set to something different from QERR_SUCCESS and can be retrieved by mean of GetError().

References QStringHandler::DoubleToString(), QBaseClient::ExecCommand(), QStringHandler::IntToString(), QNwMessageBuilder::SetCommand(), and QNwMessageBuilder::SetParameter().

Referenced by SetPSupplyVsetDiff().

bool QSlowControlClient::SetPSupplyIset ( unsigned int  channel,
double  iset 
)

set power supply current

Parameters:
iset,returned set current
Returns:
true on success, false on failure. In case of failure, QError is set to something different from QERR_SUCCESS and can be retrieved by mean of GetError().

References QStringHandler::DoubleToString(), QBaseClient::ExecCommand(), QStringHandler::IntToString(), QNwMessageBuilder::SetCommand(), and QNwMessageBuilder::SetParameter().

bool QSlowControlClient::SetPSupplyVsetDiff ( double  vset  ) 

set power supply differential voltage vset

Parameters:
vset voltage in V that is set both as V+ and V-.
Returns:
true on success, false on failure. In case of failure, QError is set to something different from QERR_SUCCESS and can be retrieved by mean of GetError().
Channel 1 is used for V+, channel 3 for V-.

References SetPSupplyVset().

Referenced by ApplyElectronicsConfiguration(), and QLCSlowConfigHandler::UpdateExternalBias().

bool QSlowControlClient::GetPSupplyVsetDiff ( double &  vset  ) 

get power supply differential voltage vset

Parameters:
vset voltage in V. It is the average of V+ and V-.
Returns:
true on success, false on failure. In case of failure, QError is set to something different from QERR_SUCCESS and can be retrieved by mean of GetError().
Channel 1 is used for V+, channel 3 for V-.

References GetPSupplyVset().

bool QSlowControlClient::GetPSupplyVoutDiff ( double &  vout  ) 

get power supply differential voltage vset

Parameters:
vout differential voltage in V. It is the average of Vout+ and Vout-.
Returns:
true on success, false on failure. In case of failure, QError is set to something different from QERR_SUCCESS and can be retrieved by mean of GetError().
Channel 1 is used for V+, channel 3 for V-.

References GetPSupplyVout().

Referenced by QLCSlowConfigHandler::Consolidate().

bool QSlowControlClient::GetPSupplyVset ( unsigned int  channel,
double &  vset 
)

get power supply voltage set

Parameters:
vset,voltage to set
Returns:
true on success, false on failure. In case of failure, QError is set to something different from QERR_SUCCESS and can be retrieved by mean of GetError().

References QBaseClient::ExecCommand(), QBaseClient::GetDouble(), QStringHandler::IntToString(), QNwMessageBuilder::SetCommand(), QNwMessageBuilder::SetModifier(), and QNwMessageBuilder::SetParameter().

Referenced by GetPSupplyVsetDiff().

bool QSlowControlClient::GetPSupplyIset ( unsigned int  channel,
double &  iset 
)

get power supply current set

Parameters:
vset,voltage to set
Returns:
true on success, false on failure. In case of failure, QError is set to something different from QERR_SUCCESS and can be retrieved by mean of GetError().

References QBaseClient::ExecCommand(), QBaseClient::GetDouble(), QStringHandler::IntToString(), QNwMessageBuilder::SetCommand(), QNwMessageBuilder::SetModifier(), and QNwMessageBuilder::SetParameter().

bool QSlowControlClient::GetPSupplyVout ( unsigned int  channel,
double &  vout 
)

get power supply output voltage

Parameters:
vout,returned output voltage in V
Returns:
true on success, false on failure. In case of failure, QError is set to something different from QERR_SUCCESS and can be retrieved by mean of GetError().

References QBaseClient::ExecCommand(), QBaseClient::GetDouble(), QStringHandler::IntToString(), QNwMessageBuilder::SetCommand(), QNwMessageBuilder::SetModifier(), and QNwMessageBuilder::SetParameter().

Referenced by GetPSupplyVoutDiff().

bool QSlowControlClient::GetPSupplyIout ( unsigned int  channel,
double &  iout 
)

get power supply output current

Parameters:
vout,returned output current in A
Returns:
true on success, false on failure. In case of failure, QError is set to something different from QERR_SUCCESS and can be retrieved by mean of GetError().

References QBaseClient::ExecCommand(), QBaseClient::GetDouble(), QStringHandler::IntToString(), QNwMessageBuilder::SetCommand(), QNwMessageBuilder::SetModifier(), and QNwMessageBuilder::SetParameter().

bool QSlowControlClient::SetPSupplyOutputEnable ( unsigned int  channel,
bool  status 
)

set power supply output enable

Parameters:
status,enable status to set
Returns:
true on success, false on failure. In case of failure, QError is set to something different from QERR_SUCCESS and can be retrieved by mean of GetError().

References QBaseClient::ExecCommand(), QStringHandler::IntToString(), QNwMessageBuilder::SetCommand(), and QNwMessageBuilder::SetParameter().

Referenced by TurnPSupplyOutputOFF(), and TurnPSupplyOutputON().

bool QSlowControlClient::GetPSupplyOutputEnable ( unsigned int  channel,
bool &  status 
)

get power supply output enable

Parameters:
status,returned output enable
Returns:
true on success, false on failure. In case of failure, QError is set to something different from QERR_SUCCESS and can be retrieved by mean of GetError().

References QBaseClient::ExecCommand(), QBaseClient::GetBool(), QStringHandler::IntToString(), QNwMessageBuilder::SetCommand(), QNwMessageBuilder::SetModifier(), and QNwMessageBuilder::SetParameter().

bool QSlowControlClient::TurnPSupplyOutputON ( unsigned int  channel  ) 

enable power supply output

Returns:
true on success, false on failure. In case of failure, QError is set to something different from QERR_SUCCESS and can be retrieved by mean of GetError().

References SetPSupplyOutputEnable().

bool QSlowControlClient::TurnPSupplyOutputOFF ( unsigned int  channel  ) 

disable power supply output

Returns:
true on success, false on failure. In case of failure, QError is set to something different from QERR_SUCCESS and can be retrieved by mean of GetError().

References SetPSupplyOutputEnable().


The documentation for this class was generated from the following files:

Generated on Tue Nov 16 10:50:08 2010 for CUORE Software by  doxygen 1.5.6