rohdeschwarz  0.2.0
TCPIP socket library for Rohde & Schwarz instrument control
channel.hpp
Go to the documentation of this file.
1 
7 #ifndef ROHDESCHWARZ_INSTRUMENTS_VNA_CHANNEL_HPP
8 #define ROHDESCHWARZ_INSTRUMENTS_VNA_CHANNEL_HPP
9 
10 
11 // std lib
12 #include <vector>
13 
14 
16 {
17 
18 
19 // forward declarations
20 class Vna;
21 
22 
28 class Channel
29 {
30 
31 public:
32 
33 
40  Channel(Vna *vna, unsigned int index);
41 
42 
46  unsigned int index() const;
47 
48 
49  // points
50 
54  unsigned int points();
55 
56 
62  void setPoints(unsigned int points);
63 
64 
65  // start frequency (Hz)
66 
70  double startFrequency_Hz();
71 
72 
78  void setStartFrequency(double frequency_Hz);
79 
80 
81  // stop frequency (Hz)
82 
86  double stopFrequency_Hz();
87 
88 
94  void setStopFrequency(double frequency_Hz);
95 
96 
100  std::vector<double> frequencies_Hz();
101 
102 
103 private:
104 
105  Vna* _vna;
106  unsigned int _index;
107 
108 
109 }; // Channel
110 
111 
112 } // rohdeschwarz::instruments::vna
113 #endif // ROHDESCHWARZ_INSTRUMENTS_VNA_CHANNEL_HPP
Object-oriented measurement channel control.
Definition: channel.hpp:29
Channel(Vna *vna, unsigned int index)
Constructor.
Definition: channel.cpp:16
void setStopFrequency(double frequency_Hz)
sets the stop frequency of the measurement
Definition: channel.cpp:61
double startFrequency_Hz()
queries the start frequency of measurement, in Hz
Definition: channel.cpp:43
void setPoints(unsigned int points)
sets number of measurement points
Definition: channel.cpp:37
std::vector< double > frequencies_Hz()
queries the measurement frequencies, in Hz
Definition: channel.cpp:67
void setStartFrequency(double frequency_Hz)
sets the start frequency of the measurement
Definition: channel.cpp:49
double stopFrequency_Hz()
queries the stop frequency of the measurement, in Hz
Definition: channel.cpp:55
unsigned int points()
queries the number of measurement points
Definition: channel.cpp:30
unsigned int index() const
channel index
Definition: channel.cpp:24
Object-oriented R&S ZNX-series VNA control.
Definition: vna.hpp:34