SctApi::SctApiDDC Class Reference


Public Member Functions

 SctApiDDC (boost::shared_ptr< SctConfiguration::Configuration > conf, boost::shared_ptr< Log > log=boost::shared_ptr< Log >())
void ddcChangeState (int crate, int channel, short state, int timeout=2)
 Change state on one channel.
void ddcChangeStates (int crate, const char *name, short state, int timeout=2)
 Changeto LV on/off, HV on/off on one channel, or group, or everything.
void ddcChangeStateAll (int crate, short state, int timeout=2)
 Change state on all power supply channels.
void ddcLoadConfiguration (int crate, short state, int timeout=2)
 Load power supply crate configuration for particular state.
void ddcHardReset (int crate, int channel, int timeout=2)
 Send hard reset to power supply channel.
void ddcHardResetAll (int crate, int timeout=2)
 Send hard reset to all channels in power supply crate.
int ddcGetChannelParameterInt (int crate, int channel, std::string name, int timeout=2)
 Get a parameter that should be interpreted as an integer.
float ddcGetChannelParameterFloat (int crate, int channel, std::string name, int timeout=2)
 Get a parameter that should be interpreted as a float.
std::string ddcGetChannelParameterString (int crate, int channel, std::string name, int timeout=2)
 Get a parameter that should be interpreted as a string (most likely an error).
int ddcGetCardParameterInt (int crate, int card, std::string name, int timeout=2)
 Get a card parameter that should be interpreted as an integer.
float ddcGetCardParameterFloat (int crate, int card, std::string name, int timeout=2)
 Get a card parameter that should be interpreted as a float.
std::string ddcGetCardParameterString (int crate, int card, std::string name, int timeout=2)
 Get a card parameter that should be interpreted as a string (probably an error).
int ddcGetCrateParameterInt (int crate, std::string name, int timeout=2)
 Get a parameter of a power supply crate that should be interpreted as an integer.
float ddcGetCrateParameterFloat (int crate, std::string name, int timeout=2)
 Get a parameter of a power supply crate that should be interpreted as a float.
std::string ddcGetCrateParameterString (int crate, std::string name, int timeout=2)
 Get a parameter of a power supply crate that should be interpreted as a string.
void ddcGetCrateParameters (int crate, std::vector< std::string > names, std::map< std::string, float > &dpeValues, int timeout)
void ddcSetChannelParameter (int crate, int channel, std::string name, float value, int timeout=2)
 Set a parameter on a power supply channel.
void ddcSetCardParameter (int crate, int card, std::string name, float value, int timeout=2)
 Set a parameter on a power supply card.
void ddcSetCrateParameter (int crate, std::string name, float value, int timeout=2)
 Set a parameter on a power supply crate.
void requestHardResetAll ()
 Request hard reset on all modules.
void requestHardReset (UINT32 mid)
 Request hard reset of module mid.
void requestIVCurve (UINT32 mid, FLOAT32 start, FLOAT32 stop, FLOAT32 step, UINT16 delay, FLOAT32 currentLim)
 Request initialisation of an IV scan.
void requestIVCurveAll (FLOAT32 start, FLOAT32 stop, FLOAT32 step, UINT16 delay, FLOAT32 currentLim)
 Request initialisation of an IV scan on all modules.
void setSelectAllInCrate (int crate, bool value, int timeout=5)
 Set the select value for all known power supply channels in a crate.
void setSelect (UINT32 mid, bool value)
 Set the select value for module mid.
void changeRunState (int state)
 Change run state of all power modules.

Private Member Functions

void initDDC ()
 I think I have to do this after ILU is running (otherwise SCTDCSCommand can't do the stuff it needs to initialise).
SCTDCSCommand * ddcCmd ()
 safe private ddc accessor:
SctConfiguration::Configurationconfig ()
 safe private config accessor:
std::ostream & log ()

Private Attributes

boost::shared_ptr< SctConfiguration::Configurationm_config
 The configuration database.
boost::shared_ptr< Logm_log
IPCPartition * m_ddcPartition
std::string * m_ddcCtrls [2]
SCTDCSCommand * m_ddcCmd

Detailed Description

Definition at line 31 of file SctApiDDC.h.


Member Function Documentation

void SctApi::SctApiDDC::changeRunState int  state  ) 
 

Change run state of all power modules.

One of Off, Standby, On

DDC: Primary purpose IPC: Not during scan Conf: No communication

SctConfiguration::Configuration* SctApi::SctApiDDC::config  )  [private]
 

safe private config accessor:

void SctApi::SctApiDDC::ddcChangeState int  crate,
int  channel,
short  state,
int  timeout = 2
 

Change state on one channel.

void SctApi::SctApiDDC::ddcChangeStateAll int  crate,
short  state,
int  timeout = 2
 

Change state on all power supply channels.

void SctApi::SctApiDDC::ddcChangeStates int  crate,
const char *  name,
short  state,
int  timeout = 2
 

Changeto LV on/off, HV on/off on one channel, or group, or everything.

SCTDCSCommand* SctApi::SctApiDDC::ddcCmd  )  [private]
 

safe private ddc accessor:

float SctApi::SctApiDDC::ddcGetCardParameterFloat int  crate,
int  card,
std::string  name,
int  timeout = 2
 

Get a card parameter that should be interpreted as a float.

int SctApi::SctApiDDC::ddcGetCardParameterInt int  crate,
int  card,
std::string  name,
int  timeout = 2
 

Get a card parameter that should be interpreted as an integer.

std::string SctApi::SctApiDDC::ddcGetCardParameterString int  crate,
int  card,
std::string  name,
int  timeout = 2
 

Get a card parameter that should be interpreted as a string (probably an error).

float SctApi::SctApiDDC::ddcGetChannelParameterFloat int  crate,
int  channel,
std::string  name,
int  timeout = 2
 

Get a parameter that should be interpreted as a float.

int SctApi::SctApiDDC::ddcGetChannelParameterInt int  crate,
int  channel,
std::string  name,
int  timeout = 2
 

Get a parameter that should be interpreted as an integer.

std::string SctApi::SctApiDDC::ddcGetChannelParameterString int  crate,
int  channel,
std::string  name,
int  timeout = 2
 

Get a parameter that should be interpreted as a string (most likely an error).

float SctApi::SctApiDDC::ddcGetCrateParameterFloat int  crate,
std::string  name,
int  timeout = 2
 

Get a parameter of a power supply crate that should be interpreted as a float.

int SctApi::SctApiDDC::ddcGetCrateParameterInt int  crate,
std::string  name,
int  timeout = 2
 

Get a parameter of a power supply crate that should be interpreted as an integer.

void SctApi::SctApiDDC::ddcGetCrateParameters int  crate,
std::vector< std::string >  names,
std::map< std::string, float > &  dpeValues,
int  timeout
 

Parameters:
crate The crate id
names A list of strings representing parameters
dpeValues The return value, map parameter name strings to values

std::string SctApi::SctApiDDC::ddcGetCrateParameterString int  crate,
std::string  name,
int  timeout = 2
 

Get a parameter of a power supply crate that should be interpreted as a string.

void SctApi::SctApiDDC::ddcHardReset int  crate,
int  channel,
int  timeout = 2
 

Send hard reset to power supply channel.

void SctApi::SctApiDDC::ddcHardResetAll int  crate,
int  timeout = 2
 

Send hard reset to all channels in power supply crate.

void SctApi::SctApiDDC::ddcLoadConfiguration int  crate,
short  state,
int  timeout = 2
 

Load power supply crate configuration for particular state.

void SctApi::SctApiDDC::ddcSetCardParameter int  crate,
int  card,
std::string  name,
float  value,
int  timeout = 2
 

Set a parameter on a power supply card.

void SctApi::SctApiDDC::ddcSetChannelParameter int  crate,
int  channel,
std::string  name,
float  value,
int  timeout = 2
 

Set a parameter on a power supply channel.

void SctApi::SctApiDDC::ddcSetCrateParameter int  crate,
std::string  name,
float  value,
int  timeout = 2
 

Set a parameter on a power supply crate.

void SctApi::SctApiDDC::initDDC  )  [private]
 

I think I have to do this after ILU is running (otherwise SCTDCSCommand can't do the stuff it needs to initialise).

void SctApi::SctApiDDC::requestHardReset UINT32  mid  ) 
 

Request hard reset of module mid.

DDC: Primary purpose IPC: Not during scan Conf: Some lookup?!

void SctApi::SctApiDDC::requestHardResetAll  ) 
 

Request hard reset on all modules.

DDC: Primary purpose IPC: Not during scan Conf: Some lookup?!

void SctApi::SctApiDDC::requestIVCurve UINT32  mid,
FLOAT32  start,
FLOAT32  stop,
FLOAT32  step,
UINT16  delay,
FLOAT32  currentLim
 

Request initialisation of an IV scan.

DDC: Primary purpose IPC: Not during scan, result will be asynchronous Conf: Some lookup?!

void SctApi::SctApiDDC::requestIVCurveAll FLOAT32  start,
FLOAT32  stop,
FLOAT32  step,
UINT16  delay,
FLOAT32  currentLim
 

Request initialisation of an IV scan on all modules.

DDC: Primary purpose IPC: Not during scan, result will be asynchronous Conf: Some lookup?!

void SctApi::SctApiDDC::setSelect UINT32  mid,
bool  value
 

Set the select value for module mid.

This is a debug method for DCS. Primary route to this functionality is via modifyABCDVar and sendModule!

DDC: Primary purpose IPC: Not during scan Conf: Some lookup?!

void SctApi::SctApiDDC::setSelectAllInCrate int  crate,
bool  value,
int  timeout = 5
 

Set the select value for all known power supply channels in a crate.

This is a debug method for DCS. Primary route to this functionality is via modifyABCDVar and sendModule???

DDC: Primary purpose IPC: Not during scan Conf: Some lookup?!


Field Documentation

boost::shared_ptr<SctConfiguration::Configuration> SctApi::SctApiDDC::m_config [private]
 

The configuration database.

Definition at line 36 of file SctApiDDC.h.


The documentation for this class was generated from the following file:
Generated on Mon Feb 6 14:04:39 2006 for SCT DAQ/DCS Software - C++ by  doxygen 1.4.6