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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Software Control System
Tango devices
MeasureInstruments
Lecroy
AcquireWaveformLecroy
Commits
2574719e
Commit
2574719e
authored
13 years ago
by
ELATTAOUI
Browse files
Options
Downloads
Patches
Plain Diff
get_waveform_data bug fixed !
parent
b751f69a
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
pom.xml
+1
-1
1 addition, 1 deletion
pom.xml
src/AcquireWaveformLecroy.cpp
+20
-16
20 additions, 16 deletions
src/AcquireWaveformLecroy.cpp
src/Waveform.cpp
+4
-1
4 additions, 1 deletion
src/Waveform.cpp
with
25 additions
and
18 deletions
pom.xml
+
1
−
1
View file @
2574719e
...
...
@@ -8,7 +8,7 @@
</parent>
<groupId>
fr.soleil.device
</groupId>
<artifactId>
AcquireWaveformLecroy-${aol}-${mode}
</artifactId>
<version>
1.1.1
2
</version>
<version>
1.1.1
3
</version>
<packaging>
nar
</packaging>
<name>
AcquireWaveformLecroy
</name>
<description>
AcquireWaveformLecroy device
</description>
...
...
This diff is collapsed.
Click to expand it.
src/AcquireWaveformLecroy.cpp
+
20
−
16
View file @
2574719e
static
const
char
*
RcsId
=
"$Header: /users/chaize/newsvn/cvsroot/Instrumentation/AcquireWaveformLecroy/src/AcquireWaveformLecroy.cpp,v 1.1
4
2012-0
2-28
1
3
:2
8:25
xavela Exp $"
;
static
const
char
*
RcsId
=
"$Header: /users/chaize/newsvn/cvsroot/Instrumentation/AcquireWaveformLecroy/src/AcquireWaveformLecroy.cpp,v 1.1
5
2012-0
3-09
1
0
:2
2:12
xavela Exp $"
;
//+=============================================================================
//
// file : AcquireWaveformLecroy.cpp
...
...
@@ -13,9 +13,12 @@ static const char *RcsId = "$Header: /users/chaize/newsvn/cvsroot/Instrumentatio
//
// $Author: xavela $
//
// $Revision: 1.1
4
$
// $Revision: 1.1
5
$
//
// $Log: not supported by cvs2svn $
// Revision 1.14 2012/02/28 13:28:25 xavela
// WaveForm.cpp : ptr which receives data, allocated statically !
//
// Revision 1.13 2010/03/26 09:11:31 vince_soleil
// "Migration_Tango7_Part2"
//
...
...
@@ -394,6 +397,21 @@ void AcquireWaveformLecroy::always_executed_hook()
}
}
std
::
cout
<<
"always end!"
<<
std
::
endl
;
}
//+----------------------------------------------------------------------------
//
// method : AcquireWaveformLecroy::read_attr_hardware()
//
// description : Hardware acquisition for attributes.
//
//-----------------------------------------------------------------------------
void
AcquireWaveformLecroy
::
read_attr_hardware
(
vector
<
long
>
&
attr_list
)
{
//- DEBUG_STREAM << "In read_attr_hardware for " << attr_list.size();
//- DEBUG_STREAM << " attribute(s)" << endl;
//- Get the waveform data and description( ADC resolution, horizontal and vertical infos, data length ...)
try
{
...
...
@@ -416,21 +434,7 @@ void AcquireWaveformLecroy::always_executed_hook()
Tango
::
ERR
);
}
std
::
cout
<<
"always end!"
<<
std
::
endl
;
}
//+----------------------------------------------------------------------------
//
// method : AcquireWaveformLecroy::read_attr_hardware()
//
// description : Hardware acquisition for attributes.
//
//-----------------------------------------------------------------------------
void
AcquireWaveformLecroy
::
read_attr_hardware
(
vector
<
long
>
&
attr_list
)
{
//- DEBUG_STREAM << "In read_attr_hardware for " << attr_list.size();
//- DEBUG_STREAM << " attribute(s)" << endl;
//- get the waveform length
try
{
...
...
This diff is collapsed.
Click to expand it.
src/Waveform.cpp
+
4
−
1
View file @
2574719e
...
...
@@ -64,7 +64,7 @@ void WaveForm_data::set_channel_name (std::string name)
//- Method to return the ptr on the WAVEDESC struct
WAVEDESC_BLOCK
*
WaveForm_data
::
get_wavedesc_descriptor
(
)
throw
(
lecroy
::
WaveformException
)
{
if
(
waveBlockData
)
if
(
!
waveBlockData
)
throw
lecroy
::
WaveformException
(
"DESCRIPTOR_MEMORY_ "
,
"get_waveform_data( ) method must be called before."
,
"WaveForm_data::get_wavedesc_descriptor( )."
);
...
...
@@ -81,6 +81,8 @@ char* cmdStr = 0;
int
response_length
=
0
;
unsigned
short
OFFSET_STRUCT
=
0
;
std
::
cout
<<
"
\t
WaveForm_data::get_waveform_data( ) -> ENTERING ..."
<<
std
::
endl
;
//- init ptr WaveBlocData which point on WAVEDESC_BLOCS structure
waveBlockData
=
0
;
...
...
@@ -188,6 +190,7 @@ unsigned short OFFSET_STRUCT = 0;
vertical_scaled_waveform_data
[
i
]
=
(
waveBlockData
->
vertical_gain
*
sh_raw_waveform_data
[
i
])
-
waveBlockData
->
vertical_offset
;
}
std
::
cout
<<
"
\t
WaveForm_data::get_waveform_data( ) -> DONE."
<<
std
::
endl
;
}
//- return the ptr on sh_raw_waveform_data ( = the waveform data acquired)
...
...
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