Skip to content
Snippets Groups Projects
Select Git revision
  • 4d22a06268aaf718d3b2b1a1b3b05841117113dc
  • main default protected
  • release_1_0_1
  • release_1_0_0
  • release_0_0_2
  • release_0_0_1
6 results

TIMIQCurl.h

Blame
  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    Keithley_486.cpp 18.82 KiB
    // ============================================================================
    //
    // = CONTEXT
    //    TANGO Project - DDC KeithleyElectrometer Support Library
    //
    // = FILENAME
    //    Keithley_486.cpp
    //
    // = AUTHOR
    //    X. Elattaoui
    //
    // ============================================================================
    static long KEITHLEY_MODEL = 486;
    
    // ============================================================================
    // DEPENDENCIES
    // ============================================================================
    #include <iostream>
    #include <stdexcept>
    #include <sstream>
    #include <string>
    #include <math.h>   //- for ceil
    #include <Xstring.h>
    #include "Keithley_486.h"
    #include "KeithleyDDCProtocol.h"
    /*
    * Valid Range values for a K_486
    */
    static const std::string K486_rangeValue[] = {"AUTO ON","2E-9","2E-8","2E-7","2E-6","2E-5","2E-4","2E-3", "AUTO OFF"};
    /*
    * Range limit : no range for values R8 & R9 (R10 = AUTORANGE OFF)
    */
    static short K486_rangeLimit = 8;
    
    /*
    * Trigger Mode limit
    */
    static short K486_triggerModeLimit = 7;
    
    /*
    * Trigger Mode limit (millisec)
    */
    static int K486_conversionRate = 360;
    
    // ============================================================================
    // Keithley_486::Keithley_486
    // ============================================================================
    Keithley_486::Keithley_486 (std::string& comLink_device_name):AbstractElectrometerClass(comLink_device_name) 
    {
    	std::cout << "Keithley_486::Keithley_486 <-" << std::endl;
    
    	//- build the keithley Electrometer obj
    	_electrometerProtocol = new KeithleyDDCProtocol(_device_proxy_name);
      _size = -1;
      _trigMod = -1;
    
    	std::cout << "Keithley_486::Keithley_486 ->" << std::endl;
    }
    
    // ============================================================================
    // Keithley_486::~Keithley_486
    // ============================================================================
    Keithley_486::~Keithley_486 (void)
    {
    	std::cout << "Keithley_486::~Keithley_486 <-" << std::endl;
    
    	std::cout << "Keithley_486::~Keithley_486 ->" << std::endl;
    }
    
    // ============================================================================