Public Member Functions | |
QPowerSupply (GPIBBaseInterface *iFace) | |
ctor | |
virtual | ~QPowerSupply () |
dtor | |
virtual const QError & | GetDouble (std::string cmd, double &value, size_t channel) |
get a double value from the power supply at the specified channel | |
virtual const QError & | SetDouble (std::string what, double value, size_t channel) |
set a double value on the power supply at the specified channel | |
virtual const QError & | GetBool (std::string what, bool &value, size_t channel) |
get a bool value from the power supply at the specified channel | |
virtual const QError & | SetBool (std::string what, bool value, size_t channel) |
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) |
get a string value from to the power supply at the specified channel | |
Protected Member Functions | |
PowerSupply * | GetInstrument () const |
Get Used GPIB Interface. | |
Private Attributes | |
PowerSupply * | f_power |
QPowerSupply::QPowerSupply | ( | GPIBBaseInterface * | iFace | ) |
ctor
primary_add | GPIB primary address | |
secondary_add | GPIB secondary address |
References f_power.
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
what | parameter to get | |
value | power supply response value | |
channel | specified output channel |
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
what | parameter to set | |
value | value to set | |
channel | specified output channel |
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
what | parameter to get | |
value | power supply response value | |
channel | specified output channel |
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
what | parameter to set | |
value | value to set | |
channel | specified output channel |
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
what | parameter to get | |
text | power supply response string | |
channel | specified output channel |
Implements QBaseInstrument.
References QBaseInstrument::GetApolloError(), BaseInstrument::GetIDN(), GetInstrument(), BaseInstrument::GetInstrumentDes(), BaseInstrument::GetName(), QApolloError::GetQError(), BaseInstrument::GetVendor(), BaseInstrument::IsError(), QApolloError::Reset(), and QApolloError::Set().
PowerSupply* QPowerSupply::f_power [private] |
Power Supply Instrument
Referenced by GetInstrument(), QPowerSupply(), and ~QPowerSupply().