00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014 #ifndef _NOVELEC_MCCE2_PROTOCOL_H_
00015 #define _NOVELEC_MCCE2_PROTOCOL_H_
00016
00017 #include "ElectrometerProtocol.h"
00018 #include "ElectrometerException.h"
00019
00032 class NovelecProtocol : public ElectrometerProtocol
00033 {
00034 public:
00035
00039 NovelecProtocol (std::string& gpib_device_name, short channel_address, short electroTypeNumber);
00040
00044 virtual ~NovelecProtocol(void);
00045
00049 void set_range (std::string value);
00050 std::string get_range (void);
00051
00052 void reset (void);
00053 void local (void);
00054 void remote(void);
00058 std::string get_value (void);
00059
00063 void switch_MCCE2_ON (void);
00064 void switch_MCCE2_OFF (void);
00065 void unable_zeroVF_func (void);
00066 void unable_offset_zeroV1_func (void);
00067 void unable_leakage_zeroV2_func (void);
00068 void unable_test_func (void);
00069
00073 std::string get_raw_status (void) ;
00077 std::string get_mode (void);
00078 std::string get_polarity (void);
00079 std::string get_frequency (void);
00080 std::string get_gain (void);
00081 std::string get_errors (void);
00082 std::string get_electrotype (void);
00083 void set_polarity (std::string pola);
00084 void set_frequency (std::string freq);
00085 void set_gain (std::string gain);
00086
00087 protected :
00088 short _devAdd;
00089 short _novType;
00090 short _rangeParameterNum;
00091 std::string _function;
00092
00093
00094 std::string check_and_extract_data (std::string resp_to_check);
00095
00096 private :
00097
00098 };
00099
00101
00102 #endif // _NOVELEC_MCCE2_PROTOCOL_H_