Skip to content
Snippets Groups Projects
Commit 0ef6a24a authored by Alain BUTEAU's avatar Alain BUTEAU
Browse files

- tests DIFFABS du 27/08

parent 74c12563
No related branches found
No related tags found
No related merge requests found
static const char *RcsId = "$Header: /users/chaize/newsvn/cvsroot/Instrumentation/CYBERSTAR/src/CYBERSTARx1000.cpp,v 1.18 2008-02-27 11:32:25 buteau Exp $";
static const char *RcsId = "$Header: /users/chaize/newsvn/cvsroot/Instrumentation/CYBERSTAR/src/CYBERSTARx1000.cpp,v 1.19 2008-02-27 17:35:31 buteau Exp $";
//+=============================================================================
//
// file : CYBERSTARx1000.cpp
......@@ -13,7 +13,7 @@ static const char *RcsId = "$Header: /users/chaize/newsvn/cvsroot/Instrumentatio
//
// $Author: buteau $
//
// $Revision: 1.18 $
// $Revision: 1.19 $
//
// $Log: not supported by cvs2svn $
// Revision 1.17 2008/02/26 17:56:58 buteau
......@@ -198,6 +198,14 @@ namespace CYBERSTARx1000_ns
//pointer to device proxy initialized to 0
mySerial = 0;
// initialize write part of attributes
read_upper();
read_lower();
attr_scaUpperThreshold_write=(*attr_scaUpperThreshold_read);
attr_scaLowerThreshold_write=(*attr_scaLowerThreshold_read);
attr_windowWidth_write= attr_scaUpperThreshold_write- attr_scaLowerThreshold_write;
attr_windowCenterPosition_write=attr_scaLowerThreshold_write + attr_windowWidth_write/2;
}
......@@ -955,8 +963,11 @@ namespace CYBERSTARx1000_ns
// check upper and lower values before writing on hardware
if(attr_scaUpperThreshold_write<=SCA_UPPER_THRESHOLD_MAX && attr_scaLowerThreshold_write>=SCA_LOWER_THRESHOLD_MIN )
{
update_lower(attr_scaLowerThreshold_write);
update_upper(attr_scaUpperThreshold_write);
// Absurd behaviour of the Cyberstar . We must reapply volatges on lower threshold again !!
update_lower(attr_scaLowerThreshold_write);
}
else
{
......@@ -976,7 +987,6 @@ namespace CYBERSTARx1000_ns
}
//+------------------------------------------------------------------
/**
* method: CYBERSTARx1000::dev_state
......
......@@ -8,9 +8,12 @@
//
// $Author: buteau $
//
// $Revision: 1.13 $
// $Revision: 1.14 $
//
// $Log: not supported by cvs2svn $
// Revision 1.13 2008/02/27 11:32:25 buteau
// - tests DIFFABS du 27/08
//
// Revision 1.12 2008/02/26 17:56:58 buteau
// - code a relire
//
......@@ -76,7 +79,7 @@
/**
* @author $Author: buteau $
* @version $Revision: 1.13 $
* @version $Revision: 1.14 $
*/
// Add your own constants definitions here.
......@@ -351,7 +354,6 @@ private :
void update_upper(double setpoint); // write the setpoint by increments and update read value
void update_window(); // update window position with width and center
};
} // namespace_ns
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment