qpidctrl  0.7.1
qlakeshoredevice.h
Go to the documentation of this file.
1 #ifndef QLAKESHOREDEVICE_H
2 #define QLAKESHOREDEVICE_H
3 
4 #include "qpiddevice.h"
5 #include "qextserialport.h"
6 #include "qpidcontroller-ptr.h"
9 
11 {
12  Q_OBJECT
13 public:
14  explicit QLakeshoreDevice(QPidControllerWPtr ctrl, QcepSettingsSaverWPtr saver, QString deviceName);
15 
16  void configurationDialog();
17 
18  virtual void writeSettings(QSettings *set, QString section);
19  virtual void readSettings(QSettings *set, QString section);
20 
21  void writeOutput(QString cmd);
22 
23 signals:
24 
25 public slots:
26  void sendCommand(QString cmd);
27  void readoutInitial();
28  void readoutPolling();
29  void readoutTimeout();
30  void changeSetPoint(double setPoint);
31  void changeRampRate(double rate);
32  void changeProportional(double prop);
33  void changeIntegral(double integ);
34  void changeDerivative(double deriv);
35  void enable(bool on);
36  bool canAutoTune();
37  void autoTune();
38 
39 public:
41 
42  Q_PROPERTY(int inputChannel READ get_InputChannel WRITE set_InputChannel)
43  QCEP_INTEGER_PROPERTY(InputChannel)
44 
45  Q_PROPERTY(int outputChannel READ get_OutputChannel WRITE set_OutputChannel)
46  QCEP_INTEGER_PROPERTY(OutputChannel)
47 
48 private:
49  QextSerialPort m_SerialPort;
51 };
52 
53 template <class T>
55 {
56 public:
57  QLakeshoreCommand(QLakeshoreDevice *device, QString cmd, T *property);
58 
59  bool replyExpected() const;
60  bool processReply(QString reply);
61  void issueCommand();
62 
63  QString cmd() const;
64 
65 private:
67  QString m_Command;
69 };
70 
71 
72 #endif // QLAKESHOREDEVICE_H
void changeDerivative(double deriv)
void enable(bool on)
QPidObjectNamer m_ObjectNamer
QWeakPointer< QPidController > QPidControllerWPtr
void sendCommand(QString cmd)
void issueCommand()
Definition: qpiddevice.cpp:448
void changeSetPoint(double setPoint)
virtual void writeSettings(QSettings *set, QString section)
void writeOutput(QString cmd)
void changeIntegral(double integ)
virtual void readSettings(QSettings *set, QString section)
QLakeshoreDeviceDialogPtr m_DeviceDialog
void changeProportional(double prop)
QextSerialPort m_SerialPort
QLakeshoreDevice(QPidControllerWPtr ctrl, QcepSettingsSaverWPtr saver, QString deviceName)
void changeRampRate(double rate)
QLakeshoreDevice * m_Device
QString deviceName
Definition: qpiddevice.h:133
QSharedPointer< QLakeshoreDeviceDialog > QLakeshoreDeviceDialogPtr