Scope
GaterDAQmx.h
1 #pragma once
2 
3 // Forward declaration
4 class StopCondition;
5 
6 namespace scope {
7 
10 class GaterDAQmx {
11 protected:
13  const std::wstring gateline;
14 
16  const StopCondition* const sc;
17 
18 public:
22  GaterDAQmx(const std::wstring& _gateline, const StopCondition* const _sc);
23 
28  bool WaitFor(const bool& _waitforhigh);
29 };
30 
31 }
Thread-safe lock-free bool to signal a requested stop to the worker function currently executed in th...
Definition: helpers.h:87
const StopCondition *const sc
The StopCondition to check if set for aborting the WaitFor.
Definition: GaterDAQmx.h:16
GaterDAQmx(const std::wstring &_gateline, const StopCondition *const _sc)
Initialize waiting task.
Definition: GaterDAQmx.cpp:8
bool WaitFor(const bool &_waitforhigh)
Starts a DAQmx task that waits until the digital line is either high or low (depending on _waitforhig...
Definition: GaterDAQmx.cpp:13
Starts a DAQmx task that waits until the digital line is either high or low (depending on _waitforhig...
Definition: GaterDAQmx.h:10
const std::wstring gateline
Line on which to wait for digital high/low signal.
Definition: GaterDAQmx.h:13