Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
E
Electrometers
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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Software Control System
Tango devices
MeasureInstruments
lib
Electrometers
Commits
843cc4f8
Commit
843cc4f8
authored
9 years ago
by
ELATTAOUI
Browse files
Options
Downloads
Patches
Plain Diff
Added electrotype as string method
parent
ede15cca
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
include/Novelec_MCCE2.h
+4
-1
4 additions, 1 deletion
include/Novelec_MCCE2.h
pom.xml
+1
-1
1 addition, 1 deletion
pom.xml
src/Novelec_MCCE2.cpp
+8
-8
8 additions, 8 deletions
src/Novelec_MCCE2.cpp
with
13 additions
and
10 deletions
include/Novelec_MCCE2.h
+
4
−
1
View file @
843cc4f8
...
...
@@ -51,6 +51,9 @@ public:
short
get_electrometer_type
()
{
return
this
->
_MCCE2electroTypeNumber
;
}
std
::
string
get_electrometer_typeStr
()
{
return
this
->
_MCCE2electroTypeStr
;
}
/**
* \brief Electrometer Functions : mode for novelec types.
...
...
@@ -87,7 +90,7 @@ protected :
unsigned
short
_rangeLimit
;
//- define the range limit for each novelec type
unsigned
short
_address
;
//- a DAIP manages 2 "channels" (or address)
unsigned
short
_MCCE2electroTypeNumber
;
//- the mcce2 electrometer type number (to check range value)
std
::
string
_MCCE2electroTypeStr
;
//- " " " " " " as string
/**
* \brief Checks the new range value
*/
...
...
This diff is collapsed.
Click to expand it.
pom.xml
+
1
−
1
View file @
843cc4f8
...
...
@@ -8,7 +8,7 @@
</parent>
<groupId>
fr.soleil.lib
</groupId>
<artifactId>
Electrometers-${aol}-${library}-${mode}
</artifactId>
<version>
2.5.18
-SNAPSHOT
</version>
<version>
2.5.18
</version>
<packaging>
nar
</packaging>
<name>
Electrometers library
</name>
<description>
Electrometers library
</description>
...
...
This diff is collapsed.
Click to expand it.
src/Novelec_MCCE2.cpp
+
8
−
8
View file @
843cc4f8
...
...
@@ -43,7 +43,8 @@ Novelec_MCCE2::Novelec_MCCE2 (std::string& comLink_device_name, unsigned short a
:
AbstractElectrometerClass
(
comLink_device_name
),
_rangeLimit
(
0
),
_address
(
address
),
_MCCE2electroTypeNumber
(
0
)
_MCCE2electroTypeNumber
(
0
),
_MCCE2electroTypeStr
(
"Unknown type"
)
{
std
::
cout
<<
"
\t\t
Novelec_MCCE2::Novelec_MCCE2 <-"
<<
std
::
endl
;
...
...
@@ -240,7 +241,6 @@ void Novelec_MCCE2::mcce_off (void)
std
::
string
Novelec_MCCE2
::
electrometer_status
(
void
)
{
std
::
string
argout
(
""
);
std
::
string
typeStr
(
" "
);
std
::
string
tmp
(
" "
);
short
status
=
0
;
...
...
@@ -264,21 +264,21 @@ std::string Novelec_MCCE2::electrometer_status (void)
switch
(
this
->
_MCCE2electroTypeNumber
)
{
case
1
:
typeStr
=
"Photovoltaque UHS"
;
case
1
:
t
his
->
_MCCE2electroT
ypeStr
=
"Photovoltaque UHS"
;
break
;
case
2
:
typeStr
=
"Photovoltaque HS"
;
case
2
:
t
his
->
_MCCE2electroT
ypeStr
=
"Photovoltaque HS"
;
break
;
case
3
:
typeStr
=
"Photovoltaque MS"
;
case
3
:
t
his
->
_MCCE2electroT
ypeStr
=
"Photovoltaque MS"
;
break
;
case
4
:
typeStr
=
"Photoconducteur HS"
;
case
4
:
t
his
->
_MCCE2electroT
ypeStr
=
"Photoconducteur HS"
;
break
;
case
5
:
typeStr
=
"Photoconducteur MS"
;
case
5
:
t
his
->
_MCCE2electroT
ypeStr
=
"Photoconducteur MS"
;
break
;
default
:
set_electroState
(
FAULT
);
argout
=
"Invalid status string returned !"
;
return
argout
;
}
argout
+=
"Novelec type : "
+
typeStr
+
"
\n
"
;
argout
+=
"Novelec type : "
+
t
his
->
_MCCE2electroT
ypeStr
+
"
\n
"
;
//- get Electrometer mode :
argout
+=
"Novelec mode : "
+
_electrometerProtocol
->
get_mode
()
+
"
\n
"
;
...
...
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