Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
CYBERSTARx1000
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Software Control System
Tango devices
MeasureInstruments
CYBERSTARx1000
Commits
0ef6a24a
Commit
0ef6a24a
authored
Feb 27, 2008
by
Alain BUTEAU
Browse files
Options
Downloads
Patches
Plain Diff
- tests DIFFABS du 27/08
parent
74c12563
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/CYBERSTARx1000.cpp
+46
-36
46 additions, 36 deletions
src/CYBERSTARx1000.cpp
src/CYBERSTARx1000.h
+5
-3
5 additions, 3 deletions
src/CYBERSTARx1000.h
with
51 additions
and
39 deletions
src/CYBERSTARx1000.cpp
+
46
−
36
View file @
0ef6a24a
static
const
char
*
RcsId
=
"$Header: /users/chaize/newsvn/cvsroot/Instrumentation/CYBERSTAR/src/CYBERSTARx1000.cpp,v 1.1
8
2008-02-27 1
1
:3
2:25
buteau Exp $"
;
static
const
char
*
RcsId
=
"$Header: /users/chaize/newsvn/cvsroot/Instrumentation/CYBERSTAR/src/CYBERSTARx1000.cpp,v 1.1
9
2008-02-27 1
7
:3
5:31
buteau Exp $"
;
//+=============================================================================
//
// file : CYBERSTARx1000.cpp
...
...
@@ -13,7 +13,7 @@ static const char *RcsId = "$Header: /users/chaize/newsvn/cvsroot/Instrumentatio
//
// $Author: buteau $
//
// $Revision: 1.1
8
$
// $Revision: 1.1
9
$
//
// $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
...
...
This diff is collapsed.
Click to expand it.
src/CYBERSTARx1000.h
+
5
−
3
View file @
0ef6a24a
...
...
@@ -8,9 +8,12 @@
//
// $Author: buteau $
//
// $Revision: 1.1
3
$
// $Revision: 1.1
4
$
//
// $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.1
3
$
* @version $Revision: 1.1
4
$
*/
// 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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment