Main Page | Modules | Class Hierarchy | Alphabetical List | Class List | File List | Class Members

NovelecProtocol.h

00001 // ============================================================================
00002 //
00003 // = CONTEXT
00004 //    TANGO Project - Novelec Electrometer Support Library
00005 //              ( Supported type : MCCE-2 )
00006 // = FILENAME
00007 //    NovelecProtocol.h
00008 //
00009 // = AUTHOR
00010 //    X. Elattaoui
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;                                                          //- novelec active channel address
00089         short _novType;                                                         //- novelec type number (1 to 5)
00090         short _rangeParameterNum;                                       //-     command number for the range 
00091         std::string _function;                                          //- the novelec mode
00092         
00093         //- check if the cmd is understood, and extract data from the response
00094         std::string check_and_extract_data      (std::string resp_to_check);
00095 
00096 private :
00097 
00098 };
00099         //- end addtogroup
00101 
00102 #endif // _NOVELEC_MCCE2_PROTOCOL_H_

Generated on Fri Dec 1 15:32:18 2006 for Electrometers Library by  doxygen 1.3.9.1