QBaseInstrument Class Reference

Inheritance diagram for QBaseInstrument:

QPowerSupply

List of all members.


Detailed Description

Base instrument controller, all the instrument controller must be inherit from it.

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

Public Member Functions

 QBaseInstrument (GPIBBaseInterface *iFace, QSlowTypes::QSlowDevice_t type)
 ctor
virtual ~QBaseInstrument ()
 dtor
virtual const QErrorGetDouble (std::string what, double &value, size_t channel)=0
 get a double value from the power supply at the specified channel
virtual const QErrorSetDouble (std::string what, double value, size_t channel)=0
 set a double value on the power supply at the specified channel
virtual const QErrorGetBool (std::string what, bool &value, size_t channel)=0
 get a bool value from the power supply at the specified channel
virtual const QErrorSetBool (std::string what, bool value, size_t channel)=0
 set a bool value on the power supply at the specified channel
virtual const QErrorGetString (std::string what, std::string &text, size_t channel)=0
 get a string value from to the power supply at the specified channel
const QSlowTypes::QSlowDevice_t GetInstrumentType () const
 Get GPIB Instrument Type.
GPIBBaseInterfaceGetInterface ()
 Get Used GPIB Interface.

Protected Member Functions

QApolloErrorGetApolloError () const
 apollo error Interface

Private Attributes

GPIBBaseInterfacef_face
QApolloErrorf_err
QSlowTypes::QSlowDevice_t f_type

Constructor & Destructor Documentation

QBaseInstrument::QBaseInstrument ( GPIBBaseInterface iFace,
QSlowTypes::QSlowDevice_t  type 
)

ctor

Parameters:
f_gpib used GPIBinterface
primary_add GPIB primary address
secondary_add GPIB secondary address

References f_err, and QApolloError::Reset().


Member Function Documentation

virtual const QError& QBaseInstrument::GetDouble ( std::string  what,
double &  value,
size_t  channel 
) [pure 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

Implemented in QPowerSupply.

virtual const QError& QBaseInstrument::SetDouble ( std::string  what,
double  value,
size_t  channel 
) [pure 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

Implemented in QPowerSupply.

virtual const QError& QBaseInstrument::GetBool ( std::string  what,
bool &  value,
size_t  channel 
) [pure 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

Implemented in QPowerSupply.

virtual const QError& QBaseInstrument::SetBool ( std::string  what,
bool  value,
size_t  channel 
) [pure 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

Implemented in QPowerSupply.

virtual const QError& QBaseInstrument::GetString ( std::string  what,
std::string &  text,
size_t  channel 
) [pure 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

Implemented in QPowerSupply.


Member Data Documentation

Instrument interface

Referenced by GetInterface().

Apollo Error interface

Referenced by GetApolloError(), and QBaseInstrument().

QSlowTypes::QSlowDevice_t QBaseInstrument::f_type [private]

GPIB instrument type

Referenced by GetInstrumentType().


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

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