Scope
scope::SwitchResonance Class Reference

#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
 

Detailed Description

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.

Constructor & Destructor Documentation

scope::SwitchResonance::~SwitchResonance ( )

Relay gets closed on destruction.

Definition at line 13 of file SwitchResonance.cpp.

Member Function Documentation

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.

bool scope::SwitchResonance::GetState ( ) const
inline
Returns
the current relay state (true = on)

Definition at line 43 of file SwitchResonance.h.

Member Data Documentation

DAQmx::CDAQmxDigitalOutTask scope::SwitchResonance::task
protected

the DAQmx task

Definition at line 13 of file SwitchResonance.h.

std::atomic<bool> scope::SwitchResonance::state
mutableprotected

current relay state

Definition at line 16 of file SwitchResonance.h.

const uint8_t scope::SwitchResonance::ondata
protected

a one

Definition at line 19 of file SwitchResonance.h.

const uint8_t scope::SwitchResonance::offdata
protected

a zero

Definition at line 22 of file SwitchResonance.h.


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