-
Notifications
You must be signed in to change notification settings - Fork 0
/
scopedatamanager.h
80 lines (56 loc) · 1.69 KB
/
scopedatamanager.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
/*
* (c) by Daniel Pelikan 2013,2014,2015
*/
#ifndef SCOPEDATAMANAGER_H
#define SCOPEDATAMANAGER_H
#include <QObject>
#include "serialmain.h"
#include "scopedisplay.h"
#include "trigger.h"
#include "controlpannel.h"
#include "fftwidget.h"
#include "client.h"
#include "runoctavescript.h"
#include "selectinstrument.h"
#include "userfunctionedit.h"
class ScopeDataManager : public QWidget //QObject
{
Q_OBJECT
public:
explicit ScopeDataManager(int argc, char ** argv,QWidget *parent = 0);
void AutoScale(const PlotDataStruct &v,const double &Time);
//This functions calculates the user functions
//and updates the value in the display
void updateUsrFunctionValues(const PlotDataStruct &a);
private:
SerialMain *serial;
Client *client; //Client for the scope server
ScopeDisplay *display;
QByteArray m_ReceivedData;
Trigger m_Trigger;
ControlPannel *m_Pannel;
FFTWidget *fftWidget;
QTimer *m_timer;//timer needed for the simulation
RunOctaveScript *m_runOctaveScript;
QGridLayout *MainLayout;
UserFunctionEdit *m_UserFunctionEdit;
signals:
void signal_SimDone(const QByteArray&);
public slots:
void slot_receiveData(const QByteArray &a);
void slot_TriggerChange(int tl);
void slot_callFFT();
void slot_TriggerChanged(enum_Trigger Trig);
void slot_AutoScale();
void slot_ChannelChange(bool b);
void slot_SimulateData();
void slot_setUsrFunctionOn();
void slot_ConnectInstrument(QString Inst, QString Option);
private:
bool doAutoScaleInNextStep;
bool m_isSerialData;
bool m_isNetworkData;
bool m_is2Channel;
SelectInstrument *m_InstSelect;
};
#endif // SCOPEDATAMANAGER_H