Public Member Functions | |
QBaseInstrument (GPIBBaseInterface *iFace, QSlowTypes::QSlowDevice_t type) | |
ctor | |
virtual | ~QBaseInstrument () |
dtor | |
virtual const QError & | GetDouble (std::string what, double &value, size_t channel)=0 |
get a double value from the power supply at the specified channel | |
virtual const QError & | SetDouble (std::string what, double value, size_t channel)=0 |
set a double value on the power supply at the specified channel | |
virtual const QError & | GetBool (std::string what, bool &value, size_t channel)=0 |
get a bool value from the power supply at the specified channel | |
virtual const QError & | SetBool (std::string what, bool value, size_t channel)=0 |
set a bool value on the power supply at the specified channel | |
virtual const QError & | GetString (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. | |
GPIBBaseInterface & | GetInterface () |
Get Used GPIB Interface. | |
Protected Member Functions | |
QApolloError * | GetApolloError () const |
apollo error Interface | |
Private Attributes | |
GPIBBaseInterface * | f_face |
QApolloError * | f_err |
QSlowTypes::QSlowDevice_t | f_type |
QBaseInstrument::QBaseInstrument | ( | GPIBBaseInterface * | iFace, | |
QSlowTypes::QSlowDevice_t | type | |||
) |
ctor
f_gpib | used GPIBinterface | |
primary_add | GPIB primary address | |
secondary_add | GPIB secondary address |
References f_err, and QApolloError::Reset().
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
what | parameter to get | |
value | power supply response value | |
channel | specified output channel |
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
what | parameter to set | |
value | value to set | |
channel | specified output channel |
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
what | parameter to get | |
value | power supply response value | |
channel | specified output channel |
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
what | parameter to set | |
value | value to set | |
channel | specified output channel |
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
what | parameter to get | |
text | power supply response string | |
channel | specified output channel |
Implemented in QPowerSupply.
GPIBBaseInterface* QBaseInstrument::f_face [private] |
Instrument interface
Referenced by GetInterface().
QApolloError* QBaseInstrument::f_err [private] |
Apollo Error interface
Referenced by GetApolloError(), and QBaseInstrument().
QSlowTypes::QSlowDevice_t QBaseInstrument::f_type [private] |
GPIB instrument type
Referenced by GetInstrumentType().