Scope
scope::parameters::Daq Class Reference

#include <IO.h>

Inherits scope::parameters::Base.

Public Member Functions

 Daq (const bool &_isslave)
 
 Daq (const Daq &_daq)
 
Daqoperator= (const Daq &_daq)
 
int32_t ScannerDelaySamples (const bool &_respectoversampling) const
 
void Load (const wptree &pt) override
 
void Save (wptree &pt) const override
 
void SetReadOnlyWhileScanning (const RunState &_runstate) override
 

Public Attributes

const bool isslave
 
std::unique_ptr< Inputsinputs
 
std::unique_ptr< Outputsoutputs
 
ScopeString shutterline
 
ScopeString switchresonanceline
 
ScopeString zoomresonanceline
 
ScopeNumber< double > pixeltime
 
ScopeNumber< double > scannerdelay
 
ScopeNumber< uint32_t > averages
 
ScopeNumber< uint32_t > requested_frames
 
ScopeNumber< uint32_t > resonance_frequency
 

Protected Member Functions

void CoercePixeltime ()
 

Additional Inherited Members

- Protected Attributes inherited from scope::parameters::Base
std::vector< boost::signals2::connection > connection_collector
 

Detailed Description

All parameters for scanner data generation and pixel acquisition If you add/remove parameters or derive classes from this, do not forget to update the Load and Save methods for your new members!

Definition at line 747 of file IO.h.

Constructor & Destructor Documentation

scope::parameters::Daq::Daq ( const bool &  _isslave)

Constructor.

Definition at line 599 of file IO.cpp.

scope::parameters::Daq::Daq ( const Daq _daq)

Supply copy constructor because of the unique_ptrs to base class.

Definition at line 616 of file IO.cpp.

Member Function Documentation

Daq & scope::parameters::Daq::operator= ( const Daq _daq)

Supply assignment operator because of the unique_ptrs to base class.

Definition at line 633 of file IO.cpp.

int32_t scope::parameters::Daq::ScannerDelaySamples ( const bool &  _respectoversampling) const
Returns
the scanner delay in samples

Definition at line 655 of file IO.cpp.

void scope::parameters::Daq::Load ( const wptree &  pt)
overridevirtual

load parameters from a boost::property_tree

Reimplemented from scope::parameters::Base.

Definition at line 662 of file IO.cpp.

void scope::parameters::Daq::Save ( wptree &  pt) const
overridevirtual

save parameters into a boost:property_tree

Reimplemented from scope::parameters::Base.

Definition at line 676 of file IO.cpp.

void scope::parameters::Daq::SetReadOnlyWhileScanning ( const RunState _runstate)
overridevirtual

set values that must not be changed to read-only during scanning.

True = readonly, false = read&write

Reimplemented from scope::parameters::Base.

Definition at line 692 of file IO.cpp.

void scope::parameters::Daq::CoercePixeltime ( )
protected

Coerces pixeltime to a value that both inputs and outputs support.

Definition at line 719 of file IO.cpp.

Member Data Documentation

const bool scope::parameters::Daq::isslave

true if belongs to a slave area

Definition at line 761 of file IO.h.

std::unique_ptr<Inputs> scope::parameters::Daq::inputs

the input parameters

Definition at line 764 of file IO.h.

std::unique_ptr<Outputs> scope::parameters::Daq::outputs

the output parameters

Definition at line 767 of file IO.h.

ScopeString scope::parameters::Daq::shutterline

digital output line of the shutter

Definition at line 770 of file IO.h.

ScopeString scope::parameters::Daq::switchresonanceline

digital output line turning the resonance scanner on and off

Definition at line 773 of file IO.h.

ScopeString scope::parameters::Daq::zoomresonanceline

digital output line of the zoom factor for a resonance scanner

Definition at line 776 of file IO.h.

ScopeNumber<double> scope::parameters::Daq::pixeltime

pixel dwell time in microseconds, this is also the analog out sampling interval

Definition at line 779 of file IO.h.

ScopeNumber<double> scope::parameters::Daq::scannerdelay

compensate, by waiting, the time that scanners lag behind the command voltage, in microseconds

Definition at line 782 of file IO.h.

ScopeNumber<uint32_t> scope::parameters::Daq::averages

number of images to average

Definition at line 785 of file IO.h.

ScopeNumber<uint32_t> scope::parameters::Daq::requested_frames

number of frames to acquire

Definition at line 788 of file IO.h.

ScopeNumber<uint32_t> scope::parameters::Daq::resonance_frequency

frequency of the resonance scanner used, which is especially the frequency of the synchronization signal

Definition at line 791 of file IO.h.


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