My Project
 All Classes Files Functions Variables Enumerations Enumerator Friends Macros Pages
HpDcPowerSupply.h
Go to the documentation of this file.
1 #ifndef GCP_UTIL_HPDCPOWERSUPPLY_H
2 #define GCP_UTIL_HPDCPOWERSUPPLY_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 HpDcPowerSupply : public GpibUsbDevice {
19  public:
20 
24  HpDcPowerSupply(bool doSpawn=false);
25  HpDcPowerSupply(std::string port, bool doSpawn=false);
26 
30  virtual ~HpDcPowerSupply();
31 
32  //------------------------------------------------------------
33  // Device commands
34  //------------------------------------------------------------
35 
36  double setVoltage(double voltage);
37  double getVoltage();
38 
39  private:
40 
41  static GPIB_RESPONSE_HANDLER(checkVoltage);
42 
43  }; // End class HpDcPowerSupply
44 
45  } // End namespace util
46 } // End namespace gcp
47 
48 
49 
50 #endif // End #ifndef GCP_UTIL_HPDCPOWERSUPPLY_H
HpDcPowerSupply(bool doSpawn=false)
Definition: HpDcPowerSupply.cc:10
double getVoltage()
Definition: HpDcPowerSupply.cc:33
virtual ~HpDcPowerSupply()
Definition: HpDcPowerSupply.cc:16
Definition: GpibUsbDevice.h:22
double setVoltage(double voltage)
Definition: HpDcPowerSupply.cc:21
Definition: HpDcPowerSupply.h:18