mirror of
http://172.16.0.230/r/SIF/TowerOptoSifAndSpectral.git
synced 2025-10-18 19:39:43 +08:00
联调通过
This commit is contained in:
50
main.cpp
50
main.cpp
@ -4,6 +4,7 @@
|
||||
#include "SystemConfigger.h"
|
||||
#include "MainDataGrabber.h"
|
||||
#include "DataFileProcessor.h"
|
||||
#include "Scheduler.h"
|
||||
using namespace std;
|
||||
#pragma once
|
||||
|
||||
@ -18,6 +19,8 @@ int main(int argc, char *argv[])
|
||||
//////////////////////////////////////////////////////////////////////////configger
|
||||
DataFileProcessor testdp;
|
||||
ZZ_SysConfigger test;
|
||||
Scheduler testS;
|
||||
|
||||
RunTimeGrabberParams testp;
|
||||
EContext testEC;
|
||||
MEContext testMEC;
|
||||
@ -28,30 +31,37 @@ int main(int argc, char *argv[])
|
||||
test.GetECParams(testEC);
|
||||
test.GetMECParams(testMEC);
|
||||
|
||||
testdp.SetEnvironmentContex(testEC);
|
||||
testdp.SetManmadeEnviromentalContext(testMEC);
|
||||
//testdp.WriteDataFile();
|
||||
//////////////////////////////////////////////////////////////////////////test
|
||||
using namespace ZZ_MISCDEF::ZZ_RUNPARAMS;
|
||||
CMainDataGrabber testDG;
|
||||
QThread* m_pqDataGrabberThreadHolder = new QThread();
|
||||
testDG.moveToThread(m_pqDataGrabberThreadHolder);
|
||||
testDG.SetGrabberFileProcessor(testdp);
|
||||
testDG.SetGrabberParams(testp);
|
||||
testDG.InitThreadStatus();
|
||||
testDG.InitializeWorkers();
|
||||
testDG.SetupMsgPipelines();
|
||||
testDG.StartWorkers();
|
||||
|
||||
testS.SetAcqTimeParams(testp.atsParams);
|
||||
|
||||
|
||||
m_pqDataGrabberThreadHolder->start();
|
||||
testDG.StartGrab();
|
||||
|
||||
|
||||
|
||||
|
||||
testdp.SetEnvironmentContex(testEC);
|
||||
testdp.SetManmadeEnviromentalContext(testMEC);
|
||||
//testdp.WriteDataFile();
|
||||
//////////////////////////////////////////////////////////////////////////test
|
||||
using namespace ZZ_MISCDEF::ZZ_RUNPARAMS;
|
||||
CMainDataGrabber testDG;
|
||||
QThread* m_pqDataGrabberThreadHolder = new QThread();
|
||||
testDG.moveToThread(m_pqDataGrabberThreadHolder);
|
||||
testDG.SetGrabberFileProcessor(testdp);
|
||||
testDG.SetGrabberParams(testp);
|
||||
testDG.SetTimer(testS);
|
||||
testDG.InitThreadStatus();
|
||||
testDG.InitializeWorkers();
|
||||
testDG.InitLS();
|
||||
testDG.SetupMsgPipelines();
|
||||
testDG.StartWorkers();
|
||||
|
||||
|
||||
|
||||
m_pqDataGrabberThreadHolder->start();
|
||||
//testDG.StartGrab();
|
||||
|
||||
QThread* m_pqTimerThreadHolder = new QThread();
|
||||
testS.moveToThread(m_pqTimerThreadHolder);
|
||||
m_pqTimerThreadHolder->start();
|
||||
testS.SelfStart();
|
||||
|
||||
//QString qstrTest = "This is a test message 2";
|
||||
//qDebug() << qstrTest;
|
||||
//cout << "This is a test message";
|
||||
|
Reference in New Issue
Block a user