Scope
scope::Shutter Class Reference

#include <Shutter.h>

Public Member Functions

 ~Shutter ()
 
void Initialize (const std::wstring &_outputline)
 
void Open (void)
 
void Close (void)
 
void Set (const bool &_open)
 
bool GetState () const
 

Protected Attributes

DAQmx::CDAQmxDigitalOutTask task
 
std::atomic< bool > state
 
const uint8_t ondata
 
const uint8_t offdata
 

Detailed Description

Controls a shutter via DAQmx one line digital output.

Definition at line 9 of file Shutter.h.

Constructor & Destructor Documentation

scope::Shutter::~Shutter ( )

Shutter gets closed on destruction.

Definition at line 13 of file Shutter.cpp.

Member Function Documentation

void scope::Shutter::Initialize ( const std::wstring &  _outputline)

Shutter gets closed on initialization.

Definition at line 18 of file Shutter.cpp.

void scope::Shutter::Open ( void  )

Opens the shutter.

Definition at line 26 of file Shutter.cpp.

void scope::Shutter::Close ( void  )

Closes the shutter.

Definition at line 33 of file Shutter.cpp.

void scope::Shutter::Set ( const bool &  _open)

Open/Closes the shutter.

Definition at line 40 of file Shutter.cpp.

bool scope::Shutter::GetState ( ) const
inline
Returns
the current shutter state (true = open)

Definition at line 43 of file Shutter.h.

Member Data Documentation

DAQmx::CDAQmxDigitalOutTask scope::Shutter::task
protected

the DAQmx task

Definition at line 13 of file Shutter.h.

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

current shutter state

Definition at line 16 of file Shutter.h.

const uint8_t scope::Shutter::ondata
protected

a one

Definition at line 19 of file Shutter.h.

const uint8_t scope::Shutter::offdata
protected

a zero

Definition at line 22 of file Shutter.h.


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