My Project
 All Classes Files Functions Variables Enumerations Enumerator Friends Macros Pages
LsThermal.h
Go to the documentation of this file.
1 #ifndef GCP_UTIL_LSTHERMAL_H
2 #define GCP_UTIL_LSTHERMAL_H
3 
10 #include "gcp/util/common/GpibUsbDevice.h"
11 
12 namespace gcp {
13  namespace util {
14 
15  // Class to communciate with the LakeShore 218
16 
17  class LsThermal : public GpibUsbDevice {
18 
19  public:
20 
24  LsThermal(bool doSpawn=false);
25  LsThermal(std::string port, bool doSpawn=false);
26  LsThermal(GpibUsbController& controller);
27 
31  virtual ~LsThermal();
32 
33  //------------------------------------------------------------
34  // Device commands *see pages 6-14 to 6-30 of manual.
35  //------------------------------------------------------------
36 
40  std::vector<float> requestMonitor(int monitorNumber=-1);
41 
42  std::string queryDataLog();
43 
47  std::vector<float> requestAnalogOutput(int monitorNumber);
48 
52  void resetModule();
53 
54  private:
55  std::vector<float> parseRegularResponse(std::string responseString, int numValues=1);
56 
57  }; // End class LsThermal
58 
59  } // End namespace util
60 } // End namespace gcp
61 
62 
63 
64 #endif // End #ifndef GCP_UTIL_LSTHERMAL_H
LsThermal(bool doSpawn=false)
Definition: LsThermal.cc:14
std::vector< float > requestAnalogOutput(int monitorNumber)
Definition: LsThermal.cc:58
Definition: GpibUsbDevice.h:22
virtual ~LsThermal()
Definition: LsThermal.cc:21
Definition: GpibUsbController.h:53
Definition: LsThermal.h:17
void resetModule()
Definition: LsThermal.cc:75
std::vector< float > requestMonitor(int monitorNumber=-1)
Definition: LsThermal.cc:26