Electric Tiger DAQ  1.0.0
Data Acquisition Software for the Electric Tiger Experiment
network_analyzer.h
1 #ifndef NETWORKANALYZER_H
2 #define NETWORKANALYZER_H
3 
4 //C System-Headers
5 //
6 //C++ System headers
7 #include <vector>
8 //Boost Headers
9 //
10 //Qt Headers
11 //
12 //Project specific headers
13 #include "../SocketComm/q_socket_comm.h"
14 #include "../AbstractSocketCommunicator/abstractsocketcommunictor.h"
15 
20 
21  public:
22  NetworkAnalyzer( std::string ip_addr,
23  uint port_number,
24  uint points,
25  double span,
26  double power,
27  QObject* parent = 0 );
28  NetworkAnalyzer& operator=( const NetworkAnalyzer& ) = delete; // non copyable
29 
30  std::vector< double > TakeDataMultiple();
31  std::vector< double > TakeDataSingle();
32  void SetFrequencyWindow( double frequency, double frequency_span );
33  void SetFrequencySpan( double frequency_span );
34  void TurnOnRFSource();
35  void TurnOffRFSource();
36 
37  private:
38  void SetGPIB();
39  void SetNetworkAnalyzer( uint points_per_scan = 401, bool do_averaging = false );
40  void SetRFParameters( double frequency_span, double RF_source_power );
41  void SetRFSource( bool source_on );
42 
43  std::vector< double > raw_str_to_vector( std::string raw_data );
44 
45 };
46 
47 
48 #endif // NETWORKANALYZER_H
Object to communicate with the HP8757 C Network Analyzer.
Definition: network_analyzer.h:19
void TurnOnRFSource()
Turn the RF source on, at whatever power it was set to most recently.
Definition: network_analyzer.cpp:165
void TurnOffRFSource()
Turn the RF source off.
Definition: network_analyzer.cpp:172
std::vector< double > TakeDataSingle()
Collect a single power spectrum from the Network Analyzer.
Definition: network_analyzer.cpp:92
Definition: abstractsocketcommunictor.h:16