2 #include "SwitchResonance.h"
3 #include "helpers/ScopeException.h"
7 SwitchResonance::SwitchResonance()
int32_t WriteDigitalLines(const uInt8 *_data, int32 _sampsperchan, bool _autostart=false, float64 _timeout=2, bool32 _layout=DAQmx_Val_GroupByChannel)
Writes to up to 8 digital lines (in one port, I suppose), depending on which lines are configured int...
void TurnOn(void)
Turns the relay on.
~SwitchResonance()
Relay gets closed on destruction.
void CreateDOChannel(const std::wstring &_devicelines, const std::wstring &_channelname=L"")
Creates a digital output channel.
void Set(const bool &_on)
Turns the relay on and off.
const uint8_t ondata
a one
This is the include file for standard system include files, or project specific include files that ar...
void ScopeExceptionHandler(const std::string &_origin, const bool &_log, const bool &_showmessagebox, const bool &_trace, const bool &_rethrow)
Handles all exceptions and does nice logging.
void Initialize(const std::wstring &_outputline)
Relay gets closed on initialization.
void CreateTask(const std::wstring &_name=L"")
void TurnOff(void)
Turns the relay off.
std::atomic< bool > state
current relay state
const uint8_t offdata
a zero
DAQmx::CDAQmxDigitalOutTask task
the DAQmx task