qmca
0.0.20
Main Page
Classes
Files
File List
File Members
qmca
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
12
EpicsPowerSupply::~EpicsPowerSupply
()
13
{
14
}
15
16
void
EpicsPowerSupply::setLimit
(
double
v)
17
{
18
m_Limit
.
caput
(v);
19
}
20
21
void
EpicsPowerSupply::setVoltage
(
double
v)
22
{
23
m_Voltage
.
caput
(v);
24
}
25
26
void
EpicsPowerSupply::setEnabled
(
int
e)
27
{
28
m_Enabled
.
caput
(e);
29
}
30
31
EpicsDouble
*
EpicsPowerSupply::voltage
()
32
{
33
return
&
m_Voltage
;
34
}
35
36
EpicsDouble
*
EpicsPowerSupply::limit
()
37
{
38
return
&
m_Limit
;
39
}
40
41
EpicsInteger
*
EpicsPowerSupply::enabled
()
42
{
43
return
&
m_Enabled
;
44
}
EpicsPowerSupply::EpicsPowerSupply
EpicsPowerSupply(QString pvName, QObject *parent=0)
Definition:
epicspowersupply.cpp:3
EpicsPowerSupply::m_Limit
EpicsDouble m_Limit
Definition:
epicspowersupply.h:27
EpicsPowerSupply::setVoltage
void setVoltage(double v)
Definition:
epicspowersupply.cpp:21
EpicsPowerSupply::m_Enabled
EpicsInteger m_Enabled
Definition:
epicspowersupply.h:29
EpicsPowerSupply::voltage
EpicsDouble * voltage()
Definition:
epicspowersupply.cpp:31
EpicsPowerSupply::m_Voltage
EpicsDouble m_Voltage
Definition:
epicspowersupply.h:26
EpicsPowerSupply::limit
EpicsDouble * limit()
Definition:
epicspowersupply.cpp:36
EpicsInteger::caput
void caput(int val)
Definition:
epicsinteger.cpp:74
EpicsPowerSupply::enabled
EpicsInteger * enabled()
Definition:
epicspowersupply.cpp:41
EpicsPowerSupply::~EpicsPowerSupply
virtual ~EpicsPowerSupply()
Definition:
epicspowersupply.cpp:12
EpicsPowerSupply::setEnabled
void setEnabled(int e)
Definition:
epicspowersupply.cpp:26
epicspowersupply.h
EpicsDouble::caput
void caput(double val)
Definition:
epicsdouble.cpp:104
EpicsPowerSupply::setLimit
void setLimit(double v)
Definition:
epicspowersupply.cpp:16
EpicsInteger
Definition:
epicsinteger.h:7
EpicsDouble
Definition:
epicsdouble.h:9
Generated by
1.8.6