Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
L
LoCuM_4
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
BeamDiagnostics
LoCuM_4
Commits
4e987bc9
"README.md" did not exist on "6778fcda8c897f458bda89792eb43b9b24ef059d"
Commit
4e987bc9
authored
Oct 10, 2008
by
Alain BUTEAU
Browse files
Options
Downloads
Patches
Plain Diff
tentative de correction pour crash DSErver
parent
7a14ee5e
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/LoCuM_4.cpp
+16
-26
16 additions, 26 deletions
src/LoCuM_4.cpp
src/LoCuM_4.h
+9
-7
9 additions, 7 deletions
src/LoCuM_4.h
src/Makefile.vc
+1
-0
1 addition, 0 deletions
src/Makefile.vc
with
26 additions
and
33 deletions
src/LoCuM_4.cpp
+
16
−
26
View file @
4e987bc9
static
const
char
*
RcsId
=
"$Header: /users/chaize/newsvn/cvsroot/Instrumentation/LoCuM_4/src/LoCuM_4.cpp,v 1.1
8
2008-10-
08 12:11:53
buteau Exp $"
;
static
const
char
*
RcsId
=
"$Header: /users/chaize/newsvn/cvsroot/Instrumentation/LoCuM_4/src/LoCuM_4.cpp,v 1.1
9
2008-10-
10 09:40:42
buteau Exp $"
;
//+=============================================================================
//
// file : LoCuM_4.cpp
...
...
@@ -13,9 +13,12 @@ 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.18 2008/10/08 12:11:53 buteau
// - nettoyage code
//
// Revision 1.17 2007/11/21 11:29:17 sebleport
// no message
//
...
...
@@ -224,7 +227,13 @@ namespace LoCuM_4_ns
//-----------------------------------------------------------------------------
void
LoCuM_4
::
always_executed_hook
()
{
if
(
mySerial
==
0
)
{
_DEV_TRY
(
create_proxy_Serialline
(),
"create_proxy_Serialline"
,
"LoCuM_4::always_executed_hook()"
);
}
}
//+----------------------------------------------------------------------------
//
...
...
@@ -238,13 +247,6 @@ namespace LoCuM_4_ns
DEBUG_STREAM
<<
"LoCuM_4::read_attr_hardware(vector<long> &attr_list) entering... "
<<
endl
;
// Add your own code here
if
(
mySerial
==
0
)
{
_DEV_TRY
(
create_proxy_Serialline
(),
"create_proxy_Serialline"
,
"LoCuM_4::always_executed_hook()"
);
}
}
//+----------------------------------------------------------------------------
//
...
...
@@ -596,11 +598,7 @@ Tango::DevString LoCuM_4::send_locum4_command(Tango::DevString argin)
"send locum command to the serial line"
,
"LoCuM_4::write_read"
,
set_state
(
Tango
::
FAULT
);
if
(
mySerial
)
{
delete
mySerial
;
mySerial
=
0
;
});
);
//- send LF, the end of string character
_DEV_TRY_REACTION
(
...
...
@@ -608,11 +606,7 @@ Tango::DevString LoCuM_4::send_locum4_command(Tango::DevString argin)
"send LF character the serial line"
,
"LoCuM_4::write_read"
,
set_state
(
Tango
::
FAULT
);
if
(
mySerial
)
{
delete
mySerial
;
mySerial
=
0
;
});
);
if
(
reading_expected
)
{
...
...
@@ -623,11 +617,7 @@ Tango::DevString LoCuM_4::send_locum4_command(Tango::DevString argin)
"read the command response"
,
"LoCuM_4::write_read"
,
set_state
(
Tango
::
FAULT
);
if
(
mySerial
)
{
delete
mySerial
;
mySerial
=
0
;
});
);
}
...
...
This diff is collapsed.
Click to expand it.
src/LoCuM_4.h
+
9
−
7
View file @
4e987bc9
...
...
@@ -6,11 +6,14 @@
//
// project : LoCuM_4
//
// $Author:
sebleport
$
// $Author:
buteau
$
//
// $Revision: 1.1
3
$
// $Revision: 1.1
4
$
//
// $Log: not supported by cvs2svn $
// Revision 1.13 2007/11/21 11:29:17 sebleport
// no message
//
// Revision 1.12 2007/11/21 10:16:51 sebleport
// - code cleaning
// - remove XbpmLocum proxy property
...
...
@@ -60,8 +63,8 @@
#include
"Xstring.h"
#include
<tango.h>
/**
* @author $Author:
sebleport
$
* @version $Revision: 1.1
3
$
* @author $Author:
buteau
$
* @version $Revision: 1.1
4
$
*/
// Add your own constants definitions here.
...
...
@@ -264,6 +267,7 @@ protected :
// Add your own data members here
//-----------------------------------------
private
:
//data
Tango
::
DeviceProxyHelper
*
mySerial
;
bool
local
;
...
...
@@ -275,8 +279,6 @@ protected :
void
create_proxy_Serialline
(
void
);
double
get_range
(
std
::
string
config
);
std
::
string
convert_range_double_to_string
(
double
value
);
void
init_XBPM_proxy
();
};
}
// namespace_ns
...
...
This diff is collapsed.
Click to expand it.
src/Makefile.vc
+
1
−
0
View file @
4e987bc9
...
...
@@ -16,6 +16,7 @@ LIBUSER=
# Le chemin ou j'ai d'autres fichiers sources que ceux du DeviceServer à compiler
CPPDIRUSER
=
#DEBUG=
#
# ------------------Fin des modifications pour le end user -------------------------------------
#
...
...
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