12 #include "../MetaInstruments/LockinAmplifier.h"
15 #include "ui_LockinAmplifierControl.h"
19 class LockinAmplifierControl;
20 class LockinAmplifierControlData;
30 bool AllowResize() const noexcept override final {
return false; }
32 const auto&
GetUI() const noexcept {
return ui; }
38 Ui::LockinAmplifierControl
ui;
83 virtual const char*
GetParamClassTag() const noexcept
override {
return "LockinAmplifierControlParams"; }
112 constexpr
static auto Name() noexcept {
return "Lock-in Amplifier Control"; }
113 constexpr
static auto Category() noexcept {
return "I/O"; }
122 std::chrono::milliseconds
GetMainLoopDelay() const override final {
return std::chrono::milliseconds(100); }
127 void ResetImpl(dispatch_tag<QModuleBase>)
override final;
129 std::unique_ptr<DynExp::QModuleWidget>
MakeUIWidget() override final;
133 void OnInit(
DynExp::ModuleInstance* Instance) const override final;
134 void OnExit(
DynExp::ModuleInstance* Instance) const override final;
Defines DynExp's core module as an interface between the UI and DynExp objects.
virtual ~LockinAmplifierControlConfigurator()=default
LockinAmplifierControlConfigurator()=default
virtual DynExp::ParamsBasePtrType MakeParams(DynExp::ItemIDType ID, const DynExp::DynExpCore &Core) const override final
Override to make derived classes call DynExp::MakeParams with the correct configurator type derived f...
uint8_t CurrentFilterOrder
void ResetImpl(dispatch_tag< QModuleDataBase >) override final
double CurrentSensitivity
std::string SensitivityUnitString
DynExp::LinkedObjectWrapperContainer< DynExpInstr::LockinAmplifier > LockinAmplifier
double CurrentSamplingRate
double CurrentAcquisitionProgress
double CurrentTimeConstant
DynExpInstr::LockinAmplifierDefs::TriggerEdgeType CurrentTriggerEdge
double CurrentPosInputLoad
virtual void ResetImpl(dispatch_tag< LockinAmplifierControlData >)
auto & GetLockinAmplifier() const noexcept
double CurrentNegInputLoad
virtual ~LockinAmplifierControlData()=default
double CurrentOscillatorFrequency
DynExpInstr::LockinAmplifierDefs::TriggerModeType CurrentTriggerMode
auto & GetLockinAmplifier() noexcept
DynExpInstr::LockinAmplifierDefs::SignalType CurrentSignal
LockinAmplifierControlData()
virtual ~LockinAmplifierControlParams()=default
LockinAmplifierControlParams(DynExp::ItemIDType ID, const DynExp::DynExpCore &Core)
void ConfigureParamsImpl(dispatch_tag< QModuleParamsBase >) override final
virtual const char * GetParamClassTag() const noexcept override
This function is intended to be overridden once in each derived class returning the name of the respe...
Param< DynExp::ObjectLink< DynExpInstr::LockinAmplifier > > LockinAmplifier
void OnSignalTypeChanged(DynExp::ModuleInstance *Instance, int Index) const
static const char * ProgressBarRedStylesheet
constexpr static auto Name() noexcept
std::chrono::milliseconds GetMainLoopDelay() const override final
Specifies in which time intervals the module's event queue runs to handle pending events.
void OnAutoPhaseClicked(DynExp::ModuleInstance *Instance, bool) const
void OnTimeConstantChanged(DynExp::ModuleInstance *Instance, double Value) const
void OnPersistParamsClicked(DynExp::ModuleInstance *Instance, bool) const
void OnFilterOrderChanged(DynExp::ModuleInstance *Instance, int Value) const
void OnPhaseChanged(DynExp::ModuleInstance *Instance, double Value) const
static const char * ProgressBarGreenStylesheet
void UpdateUIChild(const ModuleBase::ModuleDataGetterType &ModuleDataGetter) override final
void OnInit(DynExp::ModuleInstance *Instance) const override final
This event is triggered right before the module thread starts. Override it to lock instruments this m...
Util::DynExpErrorCodes::DynExpErrorCodes ModuleMainLoop(DynExp::ModuleInstance &Instance) override final
Module main loop. The function is executed periodically by the module thread. Also refer to GetMainLo...
virtual ~LockinAmplifierControl()=default
void OnTriggerModeChanged(DynExp::ModuleInstance *Instance, int Index) const
void ResetImpl(dispatch_tag< QModuleBase >) override final
void OnForceTriggerClicked(DynExp::ModuleInstance *Instance, bool) const
void OnAutoRangeClicked(DynExp::ModuleInstance *Instance, bool) const
std::unique_ptr< DynExp::QModuleWidget > MakeUIWidget() override final
Used by InitUI() as a factory function for the module's user interface widget. Create the widget here...
void OnExit(DynExp::ModuleInstance *Instance) const override final
This event is triggered right before the module thread terminates (not due to an exception,...
virtual std::string GetName() const override
Returns the name of this Object type.
size_t NumFailedUpdateAttempts
void OnEnableClicked(DynExp::ModuleInstance *Instance, int Value) const
virtual std::string GetCategory() const override
Returns the category of this Object type.
LockinAmplifierControl(const std::thread::id OwnerThreadID, DynExp::ParamsBasePtrType &&Params)
void OnTriggerEdgeChanged(DynExp::ModuleInstance *Instance, int Index) const
void OnSamplingRateChanged(DynExp::ModuleInstance *Instance, double Value) const
constexpr static auto Category() noexcept
void OnSensitivityChanged(DynExp::ModuleInstance *Instance, double Value) const
DynExp's core class acts as the interface between the user interface and DynExp's internal data like ...
Base class for modules. Modules implement programs on their own (e.g. measurement protocols or server...
Util::CallableMemberWrapper< ModuleBase, ModuleDataTypeSyncPtrType(ModuleBase::*)(const std::chrono::milliseconds)> ModuleDataGetterType
Invoking an instance of this alias is supposed to call ModuleBase::GetModuleData() of the instance th...
ModuleBase(const std::thread::id OwnerThreadID, ParamsBasePtrType &&Params)
Constructs a ModuleBase instance.
Configurator class for ModuleBase.
Data structure to contain data which is synchronized in between different threads....
Refer to ParamsBase::dispatch_tag.
Defines data for a thread belonging to a ModuleBase instance. Refer to RunnableInstance.
Parameter class for ModuleBase.
const std::thread::id OwnerThreadID
Thread id of the thread which has constructed (and owns) this Object instance.
const ParamsBasePtrType Params
Pointer to the parameter class instance belonging to this Object instance.
const ItemIDType ID
ID of the Object this parameter class instance belongs to.
const auto & GetCore() const noexcept
Returns a reference to DynExp's core.
const DynExpCore & Core
Reference to DynExp's core.
Tag for function dispatching mechanism within this class used when derived classes are not intended t...
Base class for modules with a Qt-based user interface. Derive from this class to implement modules wi...
QModuleBase(const std::thread::id OwnerThreadID, DynExp::ParamsBasePtrType &&Params)
Constructs a QModuleBase instance.
Configurator class for QModuleBase.
Data class for QModuleBase.
Parameter class for QModuleBase.
QModuleParamsBase(ItemIDType ID, const DynExpCore &Core)
Constructs the parameters for a QModuleBase instance.
Pointer to lock a class derived from ISynchronizedPointerLockable for synchronizing between threads....
TriggerEdgeType
Type to determine at which edge of a trigger signal to trigger. Not a strongly-typed enum to allow us...
SignalType
Type specifying different signal coordinates a lock-in amplifier can record. Not a strongly-typed enu...
TriggerModeType
Type to determine the trigger mode. Not a strongly-typed enum to allow using the enumeration in a Dyn...
DynExp's module namespace contains the implementation of DynExp modules which extend DynExp's core fu...
constexpr auto Instrument
DynExp's main namespace contains the implementation of DynExp including classes to manage resources (...
std::unique_ptr< ParamsBase > ParamsBasePtrType
Alias for a pointer to the parameter system base class ParamsBase.
size_t ItemIDType
ID type of objects/items managed by DynExp.
DynExpErrorCodes
DynExp's error codes
Accumulates include statements to provide a precompiled header.