Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
A
AcquireWaveformLecroy
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
Lecroy
AcquireWaveformLecroy
Commits
3fc15547
Commit
3fc15547
authored
Oct 22, 2004
by
Alain BUTEAU
Browse files
Options
Downloads
Patches
Plain Diff
Second code reread. Minor modifications
parent
6e755d26
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
doc/DeviceServerUsersGuide_en.doc
+0
-0
0 additions, 0 deletions
doc/DeviceServerUsersGuide_en.doc
src/AcquireWaveformLecroy.cpp
+11
-6
11 additions, 6 deletions
src/AcquireWaveformLecroy.cpp
src/Waveform.cpp
+1
-11
1 addition, 11 deletions
src/Waveform.cpp
with
12 additions
and
17 deletions
doc/DeviceServerUsersGuide_en.doc
+
0
−
0
View file @
3fc15547
No preview for this file type
This diff is collapsed.
Click to expand it.
src/AcquireWaveformLecroy.cpp
+
11
−
6
View file @
3fc15547
static
const
char
*
RcsId
=
"$Header: /users/chaize/newsvn/cvsroot/Instrumentation/AcquireWaveformLecroy/src/AcquireWaveformLecroy.cpp,v 1.
6
2004-10-
18
13:
17:49 xavela
Exp $"
;
static
const
char
*
RcsId
=
"$Header: /users/chaize/newsvn/cvsroot/Instrumentation/AcquireWaveformLecroy/src/AcquireWaveformLecroy.cpp,v 1.
7
2004-10-
22
13:
24:47 buteau
Exp $"
;
//+=============================================================================
//
// file : AcquireWaveformLecroy.cpp
...
...
@@ -11,11 +11,16 @@ static const char *RcsId = "$Header: /users/chaize/newsvn/cvsroot/Instrumentatio
//
// project : TANGO Device Server
//
// $Author:
xavela
$
// $Author:
buteau
$
//
// $Revision: 1.
6
$
// $Revision: 1.
7
$
//
// $Log: not supported by cvs2svn $
// Revision 1.6 2004/10/18 13:17:49 xavela
// xavier : add an attr waveArray2.
// Sorts attr in expert and operator view with Pogo.
// Inconsistencies removed.
//
// Revision 1.5 2004/10/18 09:01:40 buteau
// First code reread
//
...
...
@@ -317,7 +322,7 @@ void AcquireWaveformLecroy::always_executed_hook()
Tango
::
DevFailed
df
=
lecroy_to_tango_exception
(
we
);
Tango
::
Except
::
re_throw_exception
(
df
,
(
const
char
*
)
"
GET_DATA_FAILED
"
,
(
const
char
*
)
"
COMMUNICATION_BROKEN
"
,
(
const
char
*
)
"Cannot call get_waveform_data."
,
(
const
char
*
)
"AcquireWaveformLecroy::always_executed_hook()"
,
Tango
::
ERR
...
...
This diff is collapsed.
Click to expand it.
src/Waveform.cpp
+
1
−
11
View file @
3fc15547
...
...
@@ -58,7 +58,7 @@ std::string WaveForm_data::get_channel_name( ) throw (lecroy::WaveformException
if
(
channel_name
!=
""
)
return
channel_name
;
else
throw
lecroy
::
WaveformException
(
"D
ESCRIPTOR_MEMORY_
"
,
throw
lecroy
::
WaveformException
(
"D
ATA_OUT_OF_RANGE
"
,
"get_channel_name( ) failed : channel_name is not initialized."
,
"WaveForm_data::get_channel_name( )."
);
}
...
...
@@ -129,19 +129,10 @@ short OFFSET_STRUCT = 0;
//- delete previous scaled data
if
(
vertical_scaled_waveform_data
)
{
try
{
delete
[]
vertical_scaled_waveform_data
;
vertical_scaled_waveform_data
=
0
;
}
catch
(
const
lecroy
::
WaveformException
&
)
{
throw
lecroy
::
WaveformException
(
"MEMORY_DESALLOCATION"
,
"The pointer (vertical_scaled_waveform_data) for the receive data can't be desallocated before the read operation."
,
"WaveForm_data::get_waveform_data( )."
);
}
}
//- allocate memory for the receive data (WaveDesc + data)
ptrRawData
=
new
char
[
MAX_WAVEFORM_DATA_LENGTH
];
...
...
@@ -237,7 +228,6 @@ double* WaveForm_data::get_vertical_scaled_waveform_data( ) throw (lecroy::Lecro
}
//- Method to return the trigger time of the acquired waveform
//AB cette methode ne fait pas de throw ==> la signature est fausse
std
::
string
WaveForm_data
::
get_trigger_time_value
(
)
{
...
...
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