Skip to content
Snippets Groups Projects
Commit 0acaee8a authored by Xavier ELATTAOUI's avatar Xavier ELATTAOUI
Browse files

6485 better management

parent 3a9ae41b
Branches
Tags
No related merge requests found
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
</parent> </parent>
<groupId>fr.soleil.lib</groupId> <groupId>fr.soleil.lib</groupId>
<artifactId>Electrometers-${aol}-${library}-${mode}</artifactId> <artifactId>Electrometers-${aol}-${library}-${mode}</artifactId>
<version>2.5.27-SNAPSHOT</version> <version>2.5.27</version>
<packaging>nar</packaging> <packaging>nar</packaging>
<name>Electrometers library</name> <name>Electrometers library</name>
<description>Electrometers library</description> <description>Electrometers library</description>
......
...@@ -83,11 +83,10 @@ bool KeithleySCPIProtocol::build_communicationLink() ...@@ -83,11 +83,10 @@ bool KeithleySCPIProtocol::build_communicationLink()
try try
{ {
reset();
//- configure tthe SCPI Keithley device //- configure tthe SCPI Keithley device
std::string cmd_to_send(""); std::string cmd_to_send("");
//- Select reading only
cmd_to_send = "FORM:ELEM READ";
_communication_link->write(cmd_to_send);
//- Select control source : IMMediate //- Select control source : IMMediate
cmd_to_send = "ARM:SOUR IMM"; cmd_to_send = "ARM:SOUR IMM";
_communication_link->write(cmd_to_send); _communication_link->write(cmd_to_send);
...@@ -1214,8 +1213,6 @@ void KeithleySCPIProtocol::reset (void) ...@@ -1214,8 +1213,6 @@ void KeithleySCPIProtocol::reset (void)
//- Select reading only //- Select reading only
cmd_to_send = "FORM:ELEM READ"; cmd_to_send = "FORM:ELEM READ";
//- send command
_communication_link->write(cmd_to_send); _communication_link->write(cmd_to_send);
} }
......
...@@ -28,7 +28,7 @@ static const std::string K6485_rangeValue[] = {"2E-9","2E-8","2E-7","2E-6","2E-5 ...@@ -28,7 +28,7 @@ static const std::string K6485_rangeValue[] = {"2E-9","2E-8","2E-7","2E-6","2E-5
/* /*
* Max Index Range value for a K_6485 * Max Index Range value for a K_6485
*/ */
static const short K6485_rangeLimit = 7; static const short K6485_rangeLimit = 8;
static const unsigned short MAX_SAVED_CONFIG = 2; static const unsigned short MAX_SAVED_CONFIG = 2;
...@@ -40,8 +40,8 @@ Keithley_6485::Keithley_6485 (std::string& comLink_device_name) ...@@ -40,8 +40,8 @@ Keithley_6485::Keithley_6485 (std::string& comLink_device_name)
{ {
std::cout << "Keithley_6485::Keithley_6485 <-" << std::endl; std::cout << "Keithley_6485::Keithley_6485 <-" << std::endl;
_numPLC = 0; _numPLC = 0.1;
_trigCounts = 0; _trigCounts = 1;
_size = 0; _size = 0;
std::cout << "Keithley_6485::Keithley_6485 ->" << std::endl; std::cout << "Keithley_6485::Keithley_6485 ->" << std::endl;
...@@ -78,6 +78,8 @@ bool Keithley_6485::init_protocol (void) ...@@ -78,6 +78,8 @@ bool Keithley_6485::init_protocol (void)
_kscpi->set_isDiffSuportedMode(false); _kscpi->set_isDiffSuportedMode(false);
success = _electrometerProtocol->build_communicationLink(); success = _electrometerProtocol->build_communicationLink();
set_knplc(_numPLC);
} }
} }
catch(Tango::DevFailed& df) catch(Tango::DevFailed& df)
......
...@@ -28,7 +28,7 @@ static const std::string K6487_rangeValue[8] = {"2E-2","2E-3","2E-4","2E-5","2E- ...@@ -28,7 +28,7 @@ static const std::string K6487_rangeValue[8] = {"2E-2","2E-3","2E-4","2E-5","2E-
/* /*
* Max Index Range value for a K_6487 * Max Index Range value for a K_6487
*/ */
static const short K6487_rangeLimit = 7; static const short K6487_rangeLimit = 8;
static const unsigned short MAX_SAVED_CONFIG = 2; static const unsigned short MAX_SAVED_CONFIG = 2;
......
...@@ -32,10 +32,10 @@ static const std::string K6514_COU_rangeStr[] = {"2E-8","2E-7","2E-6","2E-5"}; ...@@ -32,10 +32,10 @@ static const std::string K6514_COU_rangeStr[] = {"2E-8","2E-7","2E-6","2E-5"};
/* /*
* Max Index Range value for a K_6514 * Max Index Range value for a K_6514
*/ */
static const short K6514_AMP_rangeLimit = 9; static const short K6514_AMP_rangeLimit = 10;
static const short K6514_VOLT_rangeLimit= 2; static const short K6514_VOLT_rangeLimit= 3;
static const short K6514_OHM_rangeLimit = 8; static const short K6514_OHM_rangeLimit = 9;
static const short K6514_COU_rangeLimit = 3; static const short K6514_COU_rangeLimit = 4;
static const unsigned short MAX_SAVED_CONFIG = 2; static const unsigned short MAX_SAVED_CONFIG = 2;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment