Scope
scope::parameters::Outputs Class Referenceabstract

#include <IO.h>

Inherits scope::parameters::Base.

Inherited by scope::parameters::OutputsDAQmx, scope::parameters::OutputsDAQmxLineClock, scope::parameters::OutputsDAQmxResonance, and scope::parameters::OutputsDAQmxSlave.

Public Member Functions

virtual std::unique_ptr< OutputsClone () const =0
 
virtual double CoercedPixeltime (const double &_pixeltime) const
 
virtual double MinimumPixeltime () const
 
void Load (const wptree &pt) override
 
void Save (wptree &pt) const override
 
void SetReadOnlyWhileScanning (const RunState &_runstate) override
 

Static Public Member Functions

static std::unique_ptr< OutputsFactory (const OutputsType &_type)
 

Public Attributes

ScopeNumber< double > range
 
ScopeNumber< double > minoutputscanner
 
ScopeNumber< double > maxoutputscanner
 
ScopeNumber< double > minoutputpockels
 
ScopeNumber< double > maxoutputpockels
 

Additional Inherited Members

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

Detailed Description

Parameters for scanner data generation, base class.

Definition at line 511 of file IO.h.

Member Function Documentation

virtual std::unique_ptr<Outputs> scope::parameters::Outputs::Clone ( ) const
pure virtual

Abstract clone method to clone into a pointer.

Has to be overriden in derived classes. There it can use the compiler generated copy constructor with e.g. OutputsDAQmx(*this).

Implemented in scope::parameters::OutputsDAQmxResonance, scope::parameters::OutputsDAQmxSlave, scope::parameters::OutputsDAQmxLineClock, and scope::parameters::OutputsDAQmx.

std::unique_ptr< Outputs > scope::parameters::Outputs::Factory ( const OutputsType _type)
static

Factory method to generate parameter sets for different scan types and put them into a ScannerVectorFrameBasic pointer.

Definition at line 393 of file IO.cpp.

virtual double scope::parameters::Outputs::CoercedPixeltime ( const double &  _pixeltime) const
inlinevirtual
Returns
the _pixeltime coerced to the nearest value the device supports.

Reimplemented in scope::parameters::OutputsDAQmxResonance, scope::parameters::OutputsDAQmxSlave, scope::parameters::OutputsDAQmxLineClock, and scope::parameters::OutputsDAQmx.

Definition at line 541 of file IO.h.

virtual double scope::parameters::Outputs::MinimumPixeltime ( ) const
inlinevirtual
Returns
the minimum pixel dwell time/sample time (in microseconds), depending on ...

Reimplemented in scope::parameters::OutputsDAQmxResonance, scope::parameters::OutputsDAQmxSlave, scope::parameters::OutputsDAQmxLineClock, and scope::parameters::OutputsDAQmx.

Definition at line 544 of file IO.h.

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

load parameters from a boost::property_tree

Reimplemented from scope::parameters::Base.

Reimplemented in scope::parameters::OutputsDAQmxResonance, scope::parameters::OutputsDAQmxSlave, scope::parameters::OutputsDAQmxLineClock, and scope::parameters::OutputsDAQmx.

Definition at line 373 of file IO.cpp.

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

save parameters into a boost:property_tree

Reimplemented from scope::parameters::Base.

Reimplemented in scope::parameters::OutputsDAQmxResonance, scope::parameters::OutputsDAQmxSlave, scope::parameters::OutputsDAQmxLineClock, and scope::parameters::OutputsDAQmx.

Definition at line 381 of file IO.cpp.

void scope::parameters::Outputs::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.

Reimplemented in scope::parameters::OutputsDAQmxResonance, scope::parameters::OutputsDAQmxSlave, scope::parameters::OutputsDAQmxLineClock, and scope::parameters::OutputsDAQmx.

Definition at line 389 of file IO.cpp.

Member Data Documentation

ScopeNumber<double> scope::parameters::Outputs::range

Output range of the DAC to use for all outputs.

E.g. NI-6259 supports only +-10 or +-5V output range (or external reference). Choose e.g. 5 for +-5V range.

Definition at line 526 of file IO.h.

ScopeNumber<double> scope::parameters::Outputs::minoutputscanner

minimum output voltage for scaling of the scanner signal

Definition at line 529 of file IO.h.

ScopeNumber<double> scope::parameters::Outputs::maxoutputscanner

maximum output voltage for scaling of the scanner signal

Definition at line 532 of file IO.h.

ScopeNumber<double> scope::parameters::Outputs::minoutputpockels

minimum output voltage for scaling of the pockels signal

Definition at line 535 of file IO.h.

ScopeNumber<double> scope::parameters::Outputs::maxoutputpockels

maximum output voltage for scaling of the pockels signal

Definition at line 538 of file IO.h.


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