SEPIA
Software documentation for the APEX SEPIA receivers
sepialogger.h
1 /* Copyright 2017 Michael Olberg <michael.olberg@chalmers.se> */
2 #ifndef SEPIALOGGER_H
3 #define SEPIALOGGER_H
4 
5 #include <QTimerEvent>
6 #include <QUdpSocket>
7 
8 #include "vacuum.h"
9 #include "cryocon.h"
10 #include "ups.h"
11 
12 class SepiaLogger : public QObject
13 {
14  Q_OBJECT
15 
16  public:
17  explicit SepiaLogger(QObject *parent = 0);
18 
19  double temperature(CryoController::Channel c);
20  double pressure();
21  bool onUPS();
22 
23  public slots:
24  bool loop(double T);
25 
26  signals:
27  void refresh(double Ta, double Tb, double Tc, double Td, double p, bool ups);
28 
29  private slots:
30  void timerEvent(QTimerEvent *event);
31 
32  private:
33  int timerId;
34  bool m_loop;
35  double T4K;
36 
37  QUdpSocket apecslogSocket;
38 
40  CryoController cc;
41  UPSunit ups;
42 };
43 
44 #endif // SEPIALOGGER_H
A class to control the vacuum monitor.
Definition: vacuum.h:20
A class to communicate with the Cryo controller.
Definition: cryocon.h:19
Channel
The different temperature channels.
Definition: cryocon.h:26
A class to retrieve status from the Eaton UPS.
Definition: ups.h:20