My Project
 All Classes Files Functions Variables Enumerations Enumerator Friends Macros Pages
HpSynthesizer.h
Go to the documentation of this file.
1 #ifndef GCP_UTIL_HPSYNTHESIZER_H
2 #define GCP_UTIL_HPSYNTHESIZER_H
3 
11 #include "gcp/util/common/Frequency.h"
12 #include "gcp/util/common/GpibUsbDevice.h"
13 #include "gcp/util/common/Power.h"
14 
15 namespace gcp {
16  namespace util {
17 
18  // Class to communciate with the GCP Agilent E4424B Signal
19  // Generator (synthesizer)
20 
21  class HpSynthesizer : public GpibUsbDevice {
22  public:
23 
27  HpSynthesizer(bool doSpawn=false);
28  HpSynthesizer(std::string port, bool doSpawn=false);
29  HpSynthesizer(GpibUsbController& controller);
30 
34  virtual ~HpSynthesizer();
35 
36  //------------------------------------------------------------
37  // Device commands
38  //------------------------------------------------------------
39 
41  void setFrequencyNoResp(Frequency freq);
43 
46 
47  bool enableRfOutput(bool enable);
48  bool queryRfOutputEnabled();
49 
50  bool enableOutputMod(bool enable);
51  bool queryOutputModEnabled();
52 
53  private:
54 
55  static GPIB_RESPONSE_HANDLER(checkPower);
56  static GPIB_RESPONSE_HANDLER(checkFrequency);
57  static GPIB_RESPONSE_HANDLER(checkRfOutput);
58  static GPIB_RESPONSE_HANDLER(checkOutputMod);
59 
60  }; // End class HpSynthesizer
61 
62  } // End namespace util
63 } // End namespace gcp
64 
65 
66 
67 #endif // End #ifndef GCP_UTIL_HPSYNTHESIZER_H
Power setOutputPower(Power pow)
Definition: HpSynthesizer.cc:22
HpSynthesizer(bool doSpawn=false)
Definition: HpSynthesizer.cc:10
Definition: GpibUsbDevice.h:22
Frequency getFrequency()
Definition: HpSynthesizer.cc:86
Frequency setFrequency(Frequency freq)
Definition: HpSynthesizer.cc:60
virtual ~HpSynthesizer()
Definition: HpSynthesizer.cc:17
Definition: HpSynthesizer.h:21
bool queryRfOutputEnabled()
Definition: HpSynthesizer.cc:125
Power getOutputPower()
Definition: HpSynthesizer.cc:36
void setFrequencyNoResp(Frequency freq)
Definition: HpSynthesizer.cc:74
Definition: Power.h:16
bool enableRfOutput(bool enable)
Definition: HpSynthesizer.cc:110
Definition: GpibUsbController.h:53
bool enableOutputMod(bool enable)
Definition: HpSynthesizer.cc:135
bool queryOutputModEnabled()
Definition: HpSynthesizer.cc:151
Definition: Frequency.h:21