mirror of
http://172.16.0.230/r/SIF/TowerOptoSifAndSpectral.git
synced 2025-10-19 11:49:42 +08:00
test
This commit is contained in:
@ -2,6 +2,7 @@
|
||||
|
||||
ZZ_DataGrabberThread::ZZ_DataGrabberThread(QObject* parent /*= nullptr*/)
|
||||
{
|
||||
m_GrabTimer = new QTimer(this);
|
||||
m_bFlagIsCollecting = false;
|
||||
InitThreadStatus();
|
||||
SetupSignals();
|
||||
@ -18,8 +19,15 @@ ZZ_DataGrabberThread::~ZZ_DataGrabberThread()
|
||||
}
|
||||
}
|
||||
|
||||
void ZZ_DataGrabberThread::SetGrabTimer(AcqTimeSettings struAcqTime)
|
||||
{
|
||||
m_struAcqTime = struAcqTime;
|
||||
}
|
||||
|
||||
int ZZ_DataGrabberThread::SetupSignals()
|
||||
{
|
||||
connect(m_GrabTimer, &QTimer::timeout, this, &ZZ_DataGrabberThread::OnTimeCounter);
|
||||
|
||||
connect(this, &ZZ_DataGrabberThread::SignalStartGrabOnce, &m_tcISIFCtrlThread, &ZZ_iSIFControlThread::StartTestAcquisition);
|
||||
connect(this, &ZZ_DataGrabberThread::SignalStartGrabOnce, &m_tcIS1CtrlThread, &ZZ_IS1ControlThread::StartTestAcquisition);
|
||||
|
||||
@ -35,6 +43,12 @@ int ZZ_DataGrabberThread::SetupSignals()
|
||||
return 0;
|
||||
}
|
||||
|
||||
int ZZ_DataGrabberThread::StartGrab()
|
||||
{
|
||||
m_GrabTimer->start(1000);
|
||||
return 0;
|
||||
}
|
||||
|
||||
int ZZ_DataGrabberThread::StartGrabberThread()
|
||||
{
|
||||
m_pqISIFThreadHolder = new QThread();
|
||||
@ -110,3 +124,9 @@ int ZZ_DataGrabberThread::HandleThreadEvent(int iThreadID, int iFlagStatus)
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
int ZZ_DataGrabberThread::OnTimeCounter()
|
||||
{
|
||||
qDebug() << "OnTimeCounter";
|
||||
return 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user