qmca  0.0.20
epicspowersupply.cpp
Go to the documentation of this file.
1 #include "epicspowersupply.h"
2 
3 EpicsPowerSupply::EpicsPowerSupply(QString pvName, QObject *parent)
4  : EpicsDouble(pvName, parent),
5  m_Voltage(pvName+"VOLT_OUT"),
6  m_Limit(pvName+"VOLT_LIM"),
7  m_Readback(pvName+"VOLTRBV"),
8  m_Enabled(pvName+"STATUS")
9 {
10 }
11 
13 {
14 }
15 
17 {
18  m_Limit.caput(v);
19 }
20 
22 {
23  m_Voltage.caput(v);
24 }
25 
27 {
28  m_Enabled.caput(e);
29 }
30 
32 {
33  return &m_Voltage;
34 }
35 
37 {
38  return &m_Limit;
39 }
40 
42 {
43  return &m_Enabled;
44 }
EpicsPowerSupply(QString pvName, QObject *parent=0)
EpicsDouble m_Limit
void setVoltage(double v)
EpicsInteger m_Enabled
EpicsDouble * voltage()
EpicsDouble m_Voltage
EpicsDouble * limit()
void caput(int val)
EpicsInteger * enabled()
virtual ~EpicsPowerSupply()
void setEnabled(int e)
void caput(double val)
void setLimit(double v)