QPowerSupply Class Reference

Inheritance diagram for QPowerSupply:

QBaseInstrument

List of all members.


Detailed Description

Power Supply controller.

Author:
Andrea Giachero (Andrea.Giachero@lngs.infn.it)

Public Member Functions

 QPowerSupply (GPIBBaseInterface *iFace)
 ctor
virtual ~QPowerSupply ()
 dtor
virtual const QErrorGetDouble (std::string cmd, double &value, size_t channel)
 get a double value from the power supply at the specified channel
virtual const QErrorSetDouble (std::string what, double value, size_t channel)
 set a double value on the power supply at the specified channel
virtual const QErrorGetBool (std::string what, bool &value, size_t channel)
 get a bool value from the power supply at the specified channel
virtual const QErrorSetBool (std::string what, bool value, size_t channel)
 set a bool value on the power supply at the specified channel
virtual const QErrorGetString (std::string what, std::string &text, size_t channel)
 get a string value from to the power supply at the specified channel

Protected Member Functions

PowerSupplyGetInstrument () const
 Get Used GPIB Interface.

Private Attributes

PowerSupplyf_power

Constructor & Destructor Documentation

QPowerSupply::QPowerSupply ( GPIBBaseInterface iFace  ) 

ctor

Parameters:
primary_add GPIB primary address
secondary_add GPIB secondary address

References f_power.


Member Function Documentation

const QError & QPowerSupply::GetDouble ( std::string  cmd,
double &  value,
size_t  channel 
) [virtual]

get a double value from the power supply at the specified channel

Parameters:
what parameter to get
value power supply response value
channel specified output channel
Returns:
a QError containing the error status

Implements QBaseInstrument.

References QBaseInstrument::GetApolloError(), PowerSupply::GetCurrent(), GetInstrument(), PowerSupply::GetOutputCurrent(), PowerSupply::GetOutputVoltage(), QApolloError::GetQError(), PowerSupply::GetVoltage(), BaseInstrument::IsError(), QApolloError::Reset(), and QApolloError::Set().

const QError & QPowerSupply::SetDouble ( std::string  what,
double  value,
size_t  channel 
) [virtual]

set a double value on the power supply at the specified channel

Parameters:
what parameter to set
value value to set
channel specified output channel
Returns:
a QError containing the error status

Implements QBaseInstrument.

References QBaseInstrument::GetApolloError(), GetInstrument(), QApolloError::GetQError(), BaseInstrument::IsError(), QApolloError::Reset(), QApolloError::Set(), PowerSupply::SetCurrent(), and PowerSupply::SetVoltage().

const QError & QPowerSupply::GetBool ( std::string  what,
bool &  value,
size_t  channel 
) [virtual]

get a bool value from the power supply at the specified channel

Parameters:
what parameter to get
value power supply response value
channel specified output channel
Returns:
a QError containing the error status

Implements QBaseInstrument.

References QBaseInstrument::GetApolloError(), GetInstrument(), PowerSupply::GetOutputEnable(), QApolloError::GetQError(), BaseInstrument::IsError(), QApolloError::Reset(), and QApolloError::Set().

const QError & QPowerSupply::SetBool ( std::string  what,
bool  value,
size_t  channel 
) [virtual]

set a bool value on the power supply at the specified channel

Parameters:
what parameter to set
value value to set
channel specified output channel
Returns:
a QError containing the error status

Implements QBaseInstrument.

References QBaseInstrument::GetApolloError(), GetInstrument(), QApolloError::GetQError(), BaseInstrument::IsError(), QApolloError::Reset(), QApolloError::Set(), and PowerSupply::SetOutputEnable().

const QError & QPowerSupply::GetString ( std::string  what,
std::string &  text,
size_t  channel 
) [virtual]

get a string value from to the power supply at the specified channel

Parameters:
what parameter to get
text power supply response string
channel specified output channel
Returns:
a QError containing the error status

Implements QBaseInstrument.

References QBaseInstrument::GetApolloError(), BaseInstrument::GetIDN(), GetInstrument(), BaseInstrument::GetInstrumentDes(), BaseInstrument::GetName(), QApolloError::GetQError(), BaseInstrument::GetVendor(), BaseInstrument::IsError(), QApolloError::Reset(), and QApolloError::Set().


Member Data Documentation

Power Supply Instrument

Referenced by GetInstrument(), QPowerSupply(), and ~QPowerSupply().


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