Public Member Functions | |
virtual | ~QSlowControlServer () |
dtor | |
QFrontEnd & | GetFrontEnd () |
Get Front-end interface. | |
QBessel & | GetBessel () |
Get Bessel interface. | |
QPulser & | GetPulser () |
Get Pulse interface. | |
QPowerSupply & | GetPowerSupply () |
Get Power Supply interface. | |
const QSlowTypes::QSlowMode_t | GetServerMode () const |
Get Slow Server Mode. | |
double | GetLiveTime () |
Get server livetime. | |
int | GetBasket () |
Get settings basket. | |
const QSlowTypes::QSlowNumFormat_t | GetNumFormat () const |
Get numerical format. | |
const QSlowTypes::QSlowWriteStatus_t | GetWriteStatus () const |
Get Slow Server Mode. | |
QApolloError * | GetApolloError () const |
Get Apollo Error interface. | |
unsigned long | GetPPortAddress () const |
Get pport address. | |
void | SendMessage (const std::string &text, MsgLevel severity) |
Send message to the message logger. | |
const QError & | SetServerMode (QSlowTypes::QSlowMode_t mode, unsigned short basket) |
Set Server Mode. | |
const QError & | SetBaseMode () |
Set Server in BASE Mode. | |
void | SetWriteStatus (QSlowTypes::QSlowWriteStatus_t Status) |
Set write status. | |
void | LockWriting () |
Lock the writing mode, read-only mode is set. | |
void | UnlockWriting () |
unlock the writing mode, reading and writing are allowed | |
void | SetNumFormat (QSlowTypes::QSlowNumFormat_t Format) |
Set answer numerical format. | |
void | SetHexFormat () |
Set hexadecimal numerical format. | |
void | SetDecFormat () |
Set decimal numerical format. | |
void | SetBinFormat () |
bool | IsValidInterface (QSlowTypes::QSlowDevice_t dev) |
Check if the specified devide has a valid interface. | |
const QError & | LoadElectronicsDevice (QSlowTypes::QSlowDevice_t dev, QSlowTypes::QSlowEleInterface_t iFace) |
Load electronics devices. | |
const QError & | LoadInstrumentDevice (QSlowTypes::QSlowDevice_t instru, QSlowTypes::QSlowEleInterface_t iFace) |
Load power supply instrument. | |
Static Public Member Functions | |
static QSlowControlServer & | GetInstance () |
singleton getter | |
Private Member Functions | |
QSlowControlServer () | |
const QError & | UpdateServerMode (QSlowTypes::QSlowMode_t mode, short basket) |
get channels map Update Server Mode | |
void | GetDBConfiguration (QSlowTypes::QSlowMode_t mode, short basket) |
get electronics configuration from the database | |
void | SetInterfaceStatus (QSlowTypes::QSlowDevice_t dev, bool status) |
Set interface status (valid=true, invalid=false) on the specified devices. | |
Private Attributes | |
QSlowTypes::QSlowMode_t | fMode |
time_t | fStart |
int | fBasket |
unsigned long | fPPortAddress |
QSlowTypes::QSlowWriteStatus_t | fStatus |
QSlowTypes::QSlowNumFormat_t | fFormat |
QFrontEnd * | fFrontEnd |
QBessel * | fBessel |
QPulser * | fPulser |
QPowerSupply * | fPower |
QApolloError * | fErr |
QEleBaseInterface * | fPpFace |
Used Communication Interfaces. | |
QEleBaseInterface * | fNwFace |
GPIBBaseInterface * | fgpib |
std::map< QSlowTypes::QSlowDevice_t, bool > | fIsValid |
std::map< unsigned short, QDaqChannel > | fChannels |
QSlowControlServer::QSlowControlServer | ( | ) | [private] |
Private ctor
void QSlowControlServer::SendMessage | ( | const std::string & | text, | |
MsgLevel | severity | |||
) |
Send message to the message logger.
text | text to send |
const QError& QSlowControlServer::SetServerMode | ( | QSlowTypes::QSlowMode_t | mode, | |
unsigned short | basket | |||
) | [inline] |
Set Server Mode.
mode | server mode | |
basket | specified settings basket |
void QSlowControlServer::SetWriteStatus | ( | QSlowTypes::QSlowWriteStatus_t | Status | ) | [inline] |
Set write status.
Status | writing status, if QSLOW_WRITE_LOCKED server is read-only else if QSLOW_WRITE_UNLOCKED server can applies the settings |
void QSlowControlServer::SetNumFormat | ( | QSlowTypes::QSlowNumFormat_t | Format | ) | [inline] |
Set answer numerical format.
format,numerical | format (dec, hex, bin) |
bool QSlowControlServer::IsValidInterface | ( | QSlowTypes::QSlowDevice_t | dev | ) |
Check if the specified devide has a valid interface.
dev,specified | device (QSLOW_FRONTEND, QSLOW_BESSEL, QSLOW_PULSER) |
const QError & QSlowControlServer::LoadElectronicsDevice | ( | QSlowTypes::QSlowDevice_t | dev, | |
QSlowTypes::QSlowEleInterface_t | iFace | |||
) |
Load electronics devices.
dev,electronics | device to load (QSLOW_FRONTEND, QSLOW_BESSEL, QSLOW_PULSER) | |
iface,specified | communication interface (QSLOW_PPORT, QSLOW_NETWORK) |
const QError & QSlowControlServer::LoadInstrumentDevice | ( | QSlowTypes::QSlowDevice_t | instru, | |
QSlowTypes::QSlowEleInterface_t | iFace | |||
) |
Load power supply instrument.
instru | instrument to load (QSLOW_POWER_SUPPLY,QSLOW_DIGITAL_MM, QSLOW_OSCILLOSCOPE, QSLOW_FUN_GENERATOR) the interface is the gpib interface |
const QError & QSlowControlServer::UpdateServerMode | ( | QSlowTypes::QSlowMode_t | mode, | |
short | basket | |||
) | [private] |
get channels map Update Server Mode
mode | selected server mode (QSLOW_BASE_MODE, QSLOW_TUNING_MODE, QSLOW_RUN_MODE) | |
basket | specified settings basket |
void QSlowControlServer::GetDBConfiguration | ( | QSlowTypes::QSlowMode_t | mode, | |
short | basket | |||
) | [private] |
get electronics configuration from the database
mode | selected server mode (QSLOW_BASE_MODE, QSLOW_TUNING_MODE, QSLOW_RUN_MODE) | |
basket | specified settings basket |
void QSlowControlServer::SetInterfaceStatus | ( | QSlowTypes::QSlowDevice_t | dev, | |
bool | status | |||
) | [private] |
Set interface status (valid=true, invalid=false) on the specified devices.
dev,specified | device (QSLOW_FRONTEND, QSLOW_BESSEL, QSLOW_PULSER) | |
status,interface | status |
QSlowTypes::QSlowMode_t QSlowControlServer::fMode [private] |
Server Mode
time_t QSlowControlServer::fStart [private] |
Starting Time
int QSlowControlServer::fBasket [private] |
db settings basket
unsigned long QSlowControlServer::fPPortAddress [private] |
parallel port address
QSlowTypes::QSlowWriteStatus_t QSlowControlServer::fStatus [private] |
Writing Enable
QSlowTypes::QSlowNumFormat_t QSlowControlServer::fFormat [private] |
Numerical Format
QFrontEnd* QSlowControlServer::fFrontEnd [private] |
Interface to performe Front-End Commands
QBessel* QSlowControlServer::fBessel [private] |
Interface to performe bessel Commands
QPulser* QSlowControlServer::fPulser [private] |
Interface to performe pulser Commands
QPowerSupply* QSlowControlServer::fPower [private] |
Interface to performe power supply Commands
QApolloError* QSlowControlServer::fErr [private] |
Apollo Error interface
QEleBaseInterface* QSlowControlServer::fPpFace [private] |
Used Communication Interfaces.
Parallel Port Interface
QEleBaseInterface* QSlowControlServer::fNwFace [private] |
Network Interface
GPIBBaseInterface* QSlowControlServer::fgpib [private] |
Instrument Interface
std::map<QSlowTypes::QSlowDevice_t,bool> QSlowControlServer::fIsValid [private] |
true if the devece has a valid interface
std::map<unsigned short,QDaqChannel> QSlowControlServer::fChannels [private] |
Address mapping