CARMA C++
HpSynthesizer.h
Go to the documentation of this file.
1 #ifndef SZA_UTIL_HPSYNTHESIZER_H
2 #define SZA_UTIL_HPSYNTHESIZER_H
3 
11 #include "carma/szautil/Frequency.h"
13 #include "carma/szautil/Power.h"
14 
15 namespace sza {
16  namespace util {
17 
18  // Class to communciate with the SZA 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 
40  Frequency setFrequency(Frequency freq);
41  Frequency getFrequency();
42 
43  Power setOutputPower(Power pow);
44  Power getOutputPower();
45 
46  bool enableRfOutput(bool enable);
47  bool queryRfOutputEnabled();
48 
49  bool enableOutputMod(bool enable);
50  bool queryOutputModEnabled();
51 
52  private:
53 
54  static GPIB_RESPONSE_HANDLER(checkPower);
55  static GPIB_RESPONSE_HANDLER(checkFrequency);
56  static GPIB_RESPONSE_HANDLER(checkRfOutput);
57  static GPIB_RESPONSE_HANDLER(checkOutputMod);
58 
59  }; // End class HpSynthesizer
60 
61  } // End namespace util
62 } // End namespace sza
63 
64 
65 
66 #endif // End #ifndef SZA_UTIL_HPSYNTHESIZER_H
Tagged: Thu Oct 18 17:42:37 PDT 2007.
Tagged: Tue Aug 11 14:04:19 PDT 2009.