Skip to content
Snippets Groups Projects
Select Git revision
  • 0779db1d9c228f19825b501f0f037da07d5034a2
  • main default protected
  • develop
  • release_2_8_3
  • release_2_8_2
  • release_2_8_1
  • release_2_8_0
  • release_2_7_1
  • release_2_7_0
  • release_2_6_0
  • release_2_5_29
  • release_2_5_28
  • release_2_5_27
  • release_2_5_26
  • release_2_5_25
  • release_2_5_24
  • release_2_5_23
  • release_2_5_22
  • release_2_5_21
  • release_2_5_20
  • release_2_5_18
  • release_2_5_17
  • release_2_5_16
23 results

Keithley_617.cpp

Blame
  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    Keithley_617.cpp 16.73 KiB
    // ============================================================================
    //
    // = CONTEXT
    //    TANGO Project - DDC KeithleyElectrometer Support Library
    //
    // = FILENAME
    //    Keithley_617.cpp
    //
    // = AUTHOR
    //    X. Elattaoui
    //
    // ============================================================================
    static long KEITHLEY_MODEL = 617;
    
    // ============================================================================
    // DEPENDENCIES
    // ============================================================================
    #include <iostream>
    #include <stdexcept>
    #include <sstream>
    #include <string>
    #include <Xstring.h>
    #include "Keithley_617.h"
    #include "KeithleyDDCProtocol.h"
    /*
    * Valid Range values for a K_617
    */
    static const std::string K617_AmpRangeValue[] = {"AUTO ON","2E-12","2E-11","2E-10","2E-9","2E-8","2E-7","2E-6","2E-5","2E-4","2E-3","2E-2", "AUTO OFF"};
    static const std::string K617_VoltRangeValue[]= {"AUTO ON","2E-1","2","20","200","200","200","200","200","200","200","200", "AUTO OFF"};
    static const std::string K617_OhmRangeValue[] = {"AUTO ON","2E3","2E4","2E5","2E6","2E7","2E8","2E9","2E10","2E11","2E11","2E11", "AUTO OFF"};
    static const std::string K617_CouRangeValue[] = {"AUTO ON","2E-10","2E-9","2E-10","2E-10","2E-10","2E-10","2E-10","2E-10","2E-10","2E-10","2E-10", "AUTO OFF"};
    static const std::string K617_XfdbRangeValue[]= {"AUTO ON","2E-1","2","20","20","20","20","20","20","20","20","20", "AUTO OFF"};
    static const std::string K617_VonIRangeValue[]= {"AUTO ON","200E12","20E12","2E12","200E9","20E9","2E9","200E6","20E6","2E6","200E3","200E3", "AUTO OFF"};
    /*
    * Range limit
    */
    static short K617_rangeLimit = 12;
    
    /*
    * Trigger Mode limit
    */
    static short K617_triggerModeLimit = 7;
    
    // ============================================================================
    // Keithley_617::Keithley_617
    // ============================================================================
    Keithley_617::Keithley_617 (std::string& comLink_device_name):AbstractElectrometerClass(comLink_device_name) 
    {
    	std::cout << "Keithley_617::Keithley_617 <-" << std::endl;
    
    	//- build the keithley Electrometer obj
    	_electrometerProtocol = new KeithleyDDCProtocol (_device_proxy_name);
    
    	std::cout << "Keithley_617::Keithley_617 ->" << std::endl;
    }
    
    // ============================================================================
    // Keithley_617::~Keithley_617
    // ============================================================================
    Keithley_617::~Keithley_617 (void)
    {
    	std::cout << "Keithley_617::~Keithley_617 <-" << std::endl;
    
    	std::cout << "Keithley_617::~Keithley_617 ->" << std::endl;
    }
    
    // ============================================================================
    // Keithley_617::autoRange_off
    // ============================================================================
    void Keithley_617::autoRange_off (void)