Scope
scope::GaterDAQmx Class Reference

#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
 

Detailed Description

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.

Constructor & Destructor Documentation

scope::GaterDAQmx::GaterDAQmx ( const std::wstring &  _gateline,
const StopCondition *const  _sc 
)

Initialize waiting task.

Parameters
[in]_gatelinethe digital line on which to wait
[in]_scWaitFor is aborted when this StopCondition is set to true

Definition at line 8 of file GaterDAQmx.cpp.

Member Function Documentation

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)

Parameters
[in]_waitforhightrue: wait for high on gateline, false: wait for low
Returns
true: wait succeeded, false: wait was aborted

Definition at line 13 of file GaterDAQmx.cpp.

Member Data Documentation

const std::wstring scope::GaterDAQmx::gateline
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.

const StopCondition* const scope::GaterDAQmx::sc
protected

The StopCondition to check if set for aborting the WaitFor.

Definition at line 16 of file GaterDAQmx.h.


The documentation for this class was generated from the following files: