![]() |
Scope
|
#include <GaterDAQmx.h>
Public Member Functions | |
| GaterDAQmx (const std::wstring &_gateline, const StopCondition *const _sc) | |
| bool | WaitFor (const bool &_waitforhigh) |
Protected Attributes | |
| const std::wstring | gateline |
| const StopCondition *const | sc |
Starts a DAQmx task that waits until the digital line is either high or low (depending on _waitforhigh) or until condition variable is notified.
Definition at line 10 of file GaterDAQmx.h.
| scope::GaterDAQmx::GaterDAQmx | ( | const std::wstring & | _gateline, |
| const StopCondition *const | _sc | ||
| ) |
Initialize waiting task.
| [in] | _gateline | the digital line on which to wait |
| [in] | _sc | WaitFor is aborted when this StopCondition is set to true |
Definition at line 8 of file GaterDAQmx.cpp.
| bool scope::GaterDAQmx::WaitFor | ( | const bool & | _waitforhigh | ) |
Starts a DAQmx task that waits until the digital line is either high or low (depending on _waitforhigh) or until StopCondition is set (StopCondition is checked every 200ms)
| [in] | _waitforhigh | true: wait for high on gateline, false: wait for low |
Definition at line 13 of file GaterDAQmx.cpp.
|
protected |
Line on which to wait for digital high/low signal.
E.g. PXI-6259_0/port0/line0
Definition at line 13 of file GaterDAQmx.h.
|
protected |
The StopCondition to check if set for aborting the WaitFor.
Definition at line 16 of file GaterDAQmx.h.