Scope
ZoomResonance.h
1 #pragma once
2 
3 #include "daqmx/DAQmxTask.h"
4 
5 namespace scope {
6 
9 class ZoomResonance {
10 
11 protected:
14 
16  mutable uint8_t state;
17 
19  const uint8_t factor1;
20 
22  const uint8_t factor2;
23 
25  const uint8_t factor3;
26 
28  const uint8_t factor4;
29 
30 public:
32  ZoomResonance();
33 
36 
38  void Initialize(const std::wstring& _outputline);
39 
41  void Set(const uint8_t& _factor);
42 
44  uint8_t GetState() const { return state; }
45 };
46 
47 }
void Set(const uint8_t &_factor)
Sets the amplitude reduction factor.
const uint8_t factor1
00
Definition: ZoomResonance.h:19
const uint8_t factor2
01
Definition: ZoomResonance.h:22
uint8_t state
current zoom state
Definition: ZoomResonance.h:16
Controls the four-step zoom scaling for a resonance scanner by two DAQmx digital line outputs...
Definition: ZoomResonance.h:9
uint8_t GetState() const
Definition: ZoomResonance.h:44
const uint8_t factor4
11
Definition: ZoomResonance.h:28
void Initialize(const std::wstring &_outputline)
Initialization.
Wraps a DAQmx Digital Output task.
Definition: DAQmxTask.h:224
const uint8_t factor3
10
Definition: ZoomResonance.h:25
DAQmx::CDAQmxDigitalOutTask task
the DAQmx task
Definition: ZoomResonance.h:13
ZoomResonance()
Constructor, reset to amplitude 1.
~ZoomResonance()
Destructor, reset to amplitude 1.