2 #include "GaterDAQmx.h"
4 #include "daqmx/DAQmxTask.h"
25 std::vector<uint16_t> readvec(1,0);
29 task.
ReadU16(readvec, 1, 1, timeout, 120);
31 DBOUT(L
"GaterDAQmx::WaitFor StopCondition set");
35 DBOUT(L
"GaterDAQmx::WaitFor waiting succeeded");
Thread-safe lock-free bool to signal a requested stop to the worker function currently executed in th...
const StopCondition *const sc
The StopCondition to check if set for aborting the WaitFor.
GaterDAQmx(const std::wstring &_gateline, const StopCondition *const _sc)
Initialize waiting task.
bool WaitFor(const bool &_waitforhigh)
Starts a DAQmx task that waits until the digital line is either high or low (depending on _waitforhig...
This is the include file for standard system include files, or project specific include files that ar...
#define DBOUT(s)
A debug output to the debug console.
void CreateTask(const std::wstring &_name=L"")
void ConfigureSampleTiming(const std::wstring &_src, const float64 &_rate, const int32 &_samplesperchan, const int32 &_samplingtype=DAQmx_Val_ContSamps, const int32 &_actedge=DAQmx_Val_Rising)
Configures a sample timing for the task.
Various helper functions and classes for Scope.
void CreateAIVoltageChannel(const std::wstring &_devicechannel, const std::wstring &_name=L"", int32 _terminalconfig=DAQmx_Val_Cfg_Default, float64 _minval=-10.0, float64 _maxval=10.0, int32 _units=DAQmx_Val_Volts, const std::wstring &_customscalename=L"")
void ConfigureDigStartTrigger(const std::wstring &_src, const int32 &_trigedge=DAQmx_Val_Rising)
Configures the start trigger.
Wraps a DAQmx Analog Input Task.
int32 ReadU16(std::vector< uint16_t > &_data, const int32 &_sampsperchan, const uint32_t &_channels, bool &_timedout, const float64 &_timeout=2)