Scope
scope::parameters::FastZControl Class Reference

#include <Devices.h>

Inherits scope::parameters::Base.

Inherited by scope::parameters::FastZControlETL.

Public Member Functions

virtual bool LoadCalibration (const std::wstring &_filepath)
 
virtual double PositionToVoltage (const double &_positionum)
 
void Load (const wptree &pt) override
 
void Save (wptree &pt) const override
 
- Public Member Functions inherited from scope::parameters::Base
virtual void SetReadOnlyWhileScanning (const RunState &_runstate)
 

Public Attributes

std::map< double, double > calibration
 
ScopeNumber< double > minoutput
 
ScopeNumber< double > maxoutput
 
ScopeString calibrationfile
 

Additional Inherited Members

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

Detailed Description

Parameters for a fast Z drive that is controlled by a voltage.

Voltage is only generated during scanning in DaqControllerImpl via OutputsDAQmx. No device initialization etc needed. Parameters handle transformation from micrometer to voltage by a calibration map that can be loaded etc.

Definition at line 88 of file Devices.h.

Member Function Documentation

bool scope::parameters::FastZControl::LoadCalibration ( const std::wstring &  _filepath)
virtual

Loads calibration data from a file, overwrites old calibration map.

Data structure has to be multiple lines with "position voltage" in ANSI format. Updates the limits of currentposition to the max and min values read from the calibration file.

Parameters
[in]_filepathpath and filename
Returns
true if successful Load

Definition at line 80 of file Devices.cpp.

double scope::parameters::FastZControl::PositionToVoltage ( const double &  _positionum)
virtual

Converts a position in micron to voltage.

Definition at line 98 of file Devices.cpp.

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

load parameters from a boost::property_tree

Reimplemented from scope::parameters::Base.

Reimplemented in scope::parameters::FastZControlETL.

Definition at line 122 of file Devices.cpp.

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

save parameters into a boost:property_tree

Reimplemented from scope::parameters::Base.

Reimplemented in scope::parameters::FastZControlETL.

Definition at line 130 of file Devices.cpp.

Member Data Documentation

std::map<double, double> scope::parameters::FastZControl::calibration

calibration map, key is absolute position in microns, value is corresponding output voltage

Definition at line 94 of file Devices.h.

ScopeNumber<double> scope::parameters::FastZControl::minoutput

Minimum output voltage to fast z, for ETL usually 0V.

Definition at line 97 of file Devices.h.

ScopeNumber<double> scope::parameters::FastZControl::maxoutput

Maximum output voltage to fast z, for ETL usually 4V.

Definition at line 100 of file Devices.h.

ScopeString scope::parameters::FastZControl::calibrationfile

calibration file name

Definition at line 103 of file Devices.h.


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