|  | Scope
    | 
#include <SwitchResonance.h>
| Public Member Functions | |
| ~SwitchResonance () | |
| void | Initialize (const std::wstring &_outputline) | 
| void | TurnOn (void) | 
| void | TurnOff (void) | 
| void | Set (const bool &_on) | 
| bool | GetState () const | 
| Protected Attributes | |
| DAQmx::CDAQmxDigitalOutTask | task | 
| std::atomic< bool > | state | 
| const uint8_t | ondata | 
| const uint8_t | offdata | 
Controls the relay for turning on and off the resonance scanner via DAQmx one line digital output.
Definition at line 9 of file SwitchResonance.h.
| scope::SwitchResonance::~SwitchResonance | ( | ) | 
Relay gets closed on destruction.
Definition at line 13 of file SwitchResonance.cpp.
| void scope::SwitchResonance::Initialize | ( | const std::wstring & | _outputline | ) | 
Relay gets closed on initialization.
Definition at line 18 of file SwitchResonance.cpp.
| void scope::SwitchResonance::TurnOn | ( | void | ) | 
Turns the relay on.
Definition at line 26 of file SwitchResonance.cpp.
| void scope::SwitchResonance::TurnOff | ( | void | ) | 
Turns the relay off.
Definition at line 33 of file SwitchResonance.cpp.
| void scope::SwitchResonance::Set | ( | const bool & | _on | ) | 
Turns the relay on and off.
Definition at line 40 of file SwitchResonance.cpp.
| 
 | inline | 
Definition at line 43 of file SwitchResonance.h.
| 
 | protected | 
the DAQmx task
Definition at line 13 of file SwitchResonance.h.
| 
 | mutableprotected | 
current relay state
Definition at line 16 of file SwitchResonance.h.
| 
 | protected | 
a one
Definition at line 19 of file SwitchResonance.h.
| 
 | protected | 
a zero
Definition at line 22 of file SwitchResonance.h.