rohdeschwarz  0.2.0
TCPIP socket library for Rohde & Schwarz instrument control
display.hpp
Go to the documentation of this file.
1 
7 #ifndef ROHDESCHWARZ_INSTRUMENTS_VNA_DISPLAY_HPP
8 #define ROHDESCHWARZ_INSTRUMENTS_VNA_DISPLAY_HPP
9 
10 
11 // std lib
12 #include <string>
13 
14 
16 {
17 
18 
19 // forward declare Vna
20 class Vna;
21 
22 
31 class Display
32 {
33 
34 public:
35 
41  Display(Vna* vna);
42 
43 
44  // display on / off
45 
49  bool isOn();
50 
51 
57  void setOn(bool on = true);
58 
59 
65  void setOff(bool off = true);
66 
67 
68  // manual display update
69 
73  bool isManualUpdate();
74 
75 
81  void setManualUpdate(bool manual = true);
82 
83 
89  void update();
90 
91 
92  // remote mode
93 
97  void local();
98 
99 
103  void remote();
104 
105 
106 private:
107  Vna* _vna;
108 
109 
110  // helpers
111 
118  std::string updateSetting();
119 
120 
129  void setUpdateSetting(const char* value);
130 
131 
140  void setUpdateSetting(const std::string& value);
141 
142 
143 }; // class Display
144 
145 
146 } // namespace rohdeschwarz::instruments::vna
147 #endif // ROHDESCHWARZ_INSTRUMENTS_VNA_DISPLAY_HPP
Object-oriented display control.
Definition: display.hpp:32
bool isManualUpdate()
queries manual display update value
Definition: display.cpp:45
void local()
set instrument to local mode
Definition: display.cpp:63
void setManualUpdate(bool manual=true)
sets manual display update
Definition: display.cpp:51
void setOn(bool on=true)
sets display on value
Definition: display.cpp:33
bool isOn()
queries whether display is on
Definition: display.cpp:27
void setOff(bool off=true)
sets display off value
Definition: display.cpp:39
void remote()
set instrument to remote mode
Definition: display.cpp:69
void update()
manually updates the display
Definition: display.cpp:57
Object-oriented R&S ZNX-series VNA control.
Definition: vna.hpp:34