52 bool doInitialize(
bool init)
override;
54 bool sustain(
const timespec& t);
60 double SyncTimeStart{0.0};
62 bool FlagFixed{
false};
64 double AmplitudeUnit{0.01};
66 unsigned ChannelCount{0};
82 bool DataEnable{
true};
84 unsigned Threshold{60};
86 double ThresholdValue{70.0};
94 bool PeakFound{
false};
98 void CalculateThreshold();
105 : GateInfo(new TGateInfo[8])
114 double SyncTimeOffset{0.0};
122 unsigned GateCount{0};
124 double TimeUnits{1e6};
128 long PopDivider{100};
133 uint32_t SyncCounter{0};
137 uint32_t CopySyncIndex{0};
139 uint32_t PopIndex{0};
141 bool CopyEnabled{
false};
146 bool TcgEnable{
false};
148 bool BiDirMode{
false};
152 double Sweep[3]{0, 0, 0};
156 TChannelInfo* FChannelInfo{
nullptr};
160 ElapseTimer SingleShotTimer;
162 [[nodiscard]]
long TimeUnits(
const TChannelInfo& ci,
const Value& value)
const;
Implements a repetitive signal acquisition emulator.
Definition RsaEmulator.h:14
double Gain
Definition RsaEmulator.h:170
double Time
Definition RsaEmulator.h:169
~AcquisitionEmulator() override
AcquisitionEmulator(const Parameters &)
bool handleParam(IdType id, ParamInfo *info, const Value *setval, Value *getval) override
Pure virtual method to be overridden in a derived class. This method handles the interface parameters...
EPolarity
Definition RsaEmulator.h:41
@ plPositive
Definition RsaEmulator.h:47
@ plFull
Definition RsaEmulator.h:45
@ plNegative
Definition RsaEmulator.h:43
bool enumParamIds(IdList &ids) override
Gets all interface parameters ids.
bool setRunMode(bool runMode, bool clear) override
Sets the implementation in hold or Run mode.
IdType getParamId(EDefaultParam param, unsigned gate, unsigned channel) const override
Gets the ID of the parameter for the specified gate.
IdType getResultId(EDefaultResult result, unsigned gate, unsigned channel) const override
Returns the ID of the result for the specified gate.
bool getRunMode() const override
Gets the current run mode of a derived class.
bool handleResult(IdType id, ResultInfo *info, BufferInfo *bufInfo) override
Handles results.
bool enumResultIds(IdList &ids) override
Gets interface results ids.
Base class for the repetitive signal acquisition interface.
Definition RsaInterface.h:17
Template to make the sustain system call a class method regularly.
Definition Sustain.h:184
Counted vector having additional methods and operators for ease of usage. This template class extends...
Definition TVector.h:20
Value container class able to performing arithmetic functions.
Definition Value.h:19
Definition Application.h:10
TDynamicBuffer< Allocator > DynamicBuffer
Actual specialized dynamic buffer type using the default allocator.
Definition TDynamicBuffer.h:540
Parameters structure passed to an RSA implementation class.
Definition RsaInterface.h:23
Definition RsaTypes.h:329
Structure to hold parameter information.
Definition RsaTypes.h:122
Definition RsaTypes.h:233
EDefaultResult
Definition RsaTypes.h:472
EDefaultParam
Definition RsaTypes.h:385
unsigned long long IdType
Type for gathering parameter ID's.
Definition RsaTypes.h:26