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
3693b92b
Commit
3693b92b
authored
16 years ago
by
ELATTAOUI
Browse files
Options
Downloads
Patches
Plain Diff
xavier :
Tango_OMemstream removed, string used instead
parent
62a784b3
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
src/KeithleyDDCProtocol.cpp
+1
-1
1 addition, 1 deletion
src/KeithleyDDCProtocol.cpp
src/TangoGpibLink.cpp
+21
-21
21 additions, 21 deletions
src/TangoGpibLink.cpp
src/TangoSerialLink.cpp
+6
-7
6 additions, 7 deletions
src/TangoSerialLink.cpp
with
28 additions
and
29 deletions
src/KeithleyDDCProtocol.cpp
+
1
−
1
View file @
3693b92b
...
...
@@ -428,7 +428,7 @@ std::string argout("no data");
cmd_to_send
<<
"U0X"
<<
std
::
endl
;
argout
=
_communication_link
->
write_read
(
cmd_to_send
.
str
());
std
::
cout
<<
"
\n\n
KeithleyDDCProtocol::get_DDC_configuration returns *"
<<
argout
<<
"*"
<<
std
::
ends
;
//
std::cout << "\n\nKeithleyDDCProtocol::get_DDC_configuration returns *" << argout << "*" << std::ends;
return
argout
;
}
...
...
This diff is collapsed.
Click to expand it.
src/TangoGpibLink.cpp
+
21
−
21
View file @
3693b92b
...
...
@@ -57,7 +57,7 @@ TangoGpibLink::~TangoGpibLink (void)
// ============================================================================
void
TangoGpibLink
::
create_gpib_proxy
(
void
)
throw
(
Tango
::
DevFailed
)
{
TangoSys_OMemStream
description
;
std
::
string
description
(
""
)
;
try
{
...
...
@@ -67,12 +67,12 @@ void TangoGpibLink::create_gpib_proxy (void) throw (Tango::DevFailed)
}
catch
(
Tango
::
DevFailed
&
df
)
{
description
<<
"Unable to create proxy on : "
<<
_communication_Device_name
<<
ends
;
description
=
"Unable to create proxy on : "
+
_communication_Device_name
;
_is_gpib_proxy_created
=
false
;
Tango
::
Except
::
re_throw_exception
(
df
,
(
const
char
*
)
"COMMUNICATION_ERROR"
,
description
.
str
(),
description
.
c_
str
(),
(
const
char
*
)
"TangoGpibLink::create_gpib_proxy"
);
}
...
...
@@ -84,7 +84,7 @@ void TangoGpibLink::create_gpib_proxy (void) throw (Tango::DevFailed)
// ============================================================================
void
TangoGpibLink
::
write
(
std
::
string
command_to_send
)
throw
(
Tango
::
DevFailed
)
{
TangoSys_OMemStream
description
;
std
::
string
description
(
""
)
;
if
(
!
_is_gpib_proxy_created
)
create_gpib_proxy
();
...
...
@@ -96,11 +96,11 @@ void TangoGpibLink::write (std::string command_to_send) throw (Tango::DevFailed
}
catch
(
Tango
::
DevFailed
&
df
)
{
description
<<
"Unable to write command : "
<<
command_to_send
<<
ends
;
description
=
"Unable to write command : "
+
command_to_send
;
Tango
::
Except
::
re_throw_exception
(
df
,
(
const
char
*
)
"COMMUNICATION_ERROR"
,
description
.
str
(),
description
.
c_
str
(),
(
const
char
*
)
"TangoGpibLink::write"
);
}
...
...
@@ -138,7 +138,7 @@ std::string TangoGpibLink::read (void) throw (Tango::DevFailed)
// ============================================================================
std
::
string
TangoGpibLink
::
write_read
(
std
::
string
command_to_send
)
throw
(
Tango
::
DevFailed
)
{
TangoSys_OMemStream
description
;
std
::
string
description
(
""
)
;
if
(
!
_is_gpib_proxy_created
)
create_gpib_proxy
();
...
...
@@ -152,11 +152,11 @@ std::string TangoGpibLink::write_read (std::string command_to_send) throw (Tango
}
catch
(
Tango
::
DevFailed
&
df
)
{
description
<<
"Unable to write command : "
<<
command_to_send
<<
" and read device response."
<<
ends
;
description
=
"Unable to write command : "
+
command_to_send
+
" and read device response."
;
Tango
::
Except
::
re_throw_exception
(
df
,
(
const
char
*
)
"COMMUNICATION_ERROR"
,
description
.
str
(),
description
.
c_
str
(),
(
const
char
*
)
"TangoGpibLink::write_read"
);
}
...
...
@@ -168,7 +168,7 @@ std::string TangoGpibLink::write_read (std::string command_to_send) throw (Tango
// ============================================================================
bool
TangoGpibLink
::
SRQLineState
(
void
)
throw
(
Tango
::
DevFailed
)
{
TangoSys_OMemStream
description
;
std
::
string
description
(
""
)
;
bool
result
=
false
;
if
(
!
_is_gpib_proxy_created
)
...
...
@@ -183,11 +183,11 @@ bool TangoGpibLink::SRQLineState (void) throw (Tango::DevFailed)
}
catch
(
Tango
::
DevFailed
&
df
)
{
description
<<
"Unable to get Gpib SRQ line state."
<<
ends
;
description
=
"Unable to get Gpib SRQ line state."
;
Tango
::
Except
::
re_throw_exception
(
df
,
(
const
char
*
)
"COMMUNICATION_ERROR"
,
description
.
str
(),
description
.
c_
str
(),
(
const
char
*
)
"TangoGpibLink::SRQLineState"
);
}
...
...
@@ -199,7 +199,7 @@ bool TangoGpibLink::SRQLineState (void) throw (Tango::DevFailed)
// ============================================================================
short
TangoGpibLink
::
readStatusByteRegister
(
void
)
throw
(
Tango
::
DevFailed
)
{
TangoSys_OMemStream
description
;
std
::
string
description
(
""
)
;
short
result
=
-
1
;
if
(
!
_is_gpib_proxy_created
)
...
...
@@ -214,11 +214,11 @@ short TangoGpibLink::readStatusByteRegister (void) throw (Tango::DevFailed)
}
catch
(
Tango
::
DevFailed
&
df
)
{
description
<<
"Unable to get device status byte register."
<<
ends
;
description
=
"Unable to get device status byte register."
;
Tango
::
Except
::
re_throw_exception
(
df
,
(
const
char
*
)
"COMMUNICATION_ERROR"
,
description
.
str
(),
description
.
c_
str
(),
(
const
char
*
)
"TangoGpibLink::readStatusByteRegister"
);
}
...
...
@@ -230,7 +230,7 @@ short TangoGpibLink::readStatusByteRegister (void) throw (Tango::DevFailed)
// ============================================================================
void
TangoGpibLink
::
clear
(
void
)
throw
(
Tango
::
DevFailed
)
{
TangoSys_OMemStream
description
;
std
::
string
description
(
""
)
;
if
(
!
_is_gpib_proxy_created
)
create_gpib_proxy
();
...
...
@@ -242,11 +242,11 @@ void TangoGpibLink::clear (void) throw (Tango::DevFailed)
}
catch
(
Tango
::
DevFailed
&
df
)
{
description
<<
"Unable send Clear Device command."
<<
ends
;
description
=
"Unable send Clear Device command."
;
Tango
::
Except
::
re_throw_exception
(
df
,
(
const
char
*
)
"COMMUNICATION_ERROR"
,
description
.
str
(),
description
.
c_
str
(),
(
const
char
*
)
"TangoGpibLink::clear"
);
}
...
...
@@ -258,7 +258,7 @@ void TangoGpibLink::clear (void) throw (Tango::DevFailed)
// ============================================================================
void
TangoGpibLink
::
trigger
(
void
)
throw
(
Tango
::
DevFailed
)
{
TangoSys_OMemStream
description
;
std
::
string
description
(
""
)
;
if
(
!
_is_gpib_proxy_created
)
create_gpib_proxy
();
...
...
@@ -270,11 +270,11 @@ void TangoGpibLink::trigger (void) throw (Tango::DevFailed)
}
catch
(
Tango
::
DevFailed
&
df
)
{
description
<<
"Unable send Trigger command."
<<
ends
;
description
=
"Unable send Trigger command."
;
Tango
::
Except
::
re_throw_exception
(
df
,
(
const
char
*
)
"COMMUNICATION_ERROR"
,
description
.
str
(),
description
.
c_
str
(),
(
const
char
*
)
"TangoGpibLink::clear"
);
}
...
...
This diff is collapsed.
Click to expand it.
src/TangoSerialLink.cpp
+
6
−
7
View file @
3693b92b
...
...
@@ -60,7 +60,7 @@ TangoSerialLink::~TangoSerialLink (void)
// ============================================================================
void
TangoSerialLink
::
create_serial_proxy
(
void
)
throw
(
Tango
::
DevFailed
)
{
TangoSys_OMemStream
description
;
std
::
string
description
(
""
)
;
try
{
...
...
@@ -70,12 +70,12 @@ void TangoSerialLink::create_serial_proxy (void) throw (Tango::DevFailed)
}
catch
(
Tango
::
DevFailed
&
df
)
{
description
<<
"Unable to create proxy on : "
<<
_communication_Device_name
<<
ends
;
description
=
"Unable to create proxy on : "
+
_communication_Device_name
;
_is_serial_proxy_created
=
false
;
Tango
::
Except
::
re_throw_exception
(
df
,
(
const
char
*
)
"COMMUNICATION_ERROR"
,
description
.
str
(),
description
.
c_
str
(),
(
const
char
*
)
"TangoSerialLink::create_serial_proxy"
);
}
...
...
@@ -86,7 +86,7 @@ void TangoSerialLink::create_serial_proxy (void) throw (Tango::DevFailed)
// ============================================================================
void
TangoSerialLink
::
write
(
std
::
string
command_to_send
)
throw
(
Tango
::
DevFailed
)
{
TangoSys_OMemStream
description
;
std
::
string
description
(
""
)
;
if
(
!
_is_serial_proxy_created
)
create_serial_proxy
();
...
...
@@ -98,11 +98,11 @@ void TangoSerialLink::write (std::string command_to_send) throw (Tango::DevFail
}
catch
(
Tango
::
DevFailed
&
df
)
{
description
<<
"Unable to write command : "
<<
command_to_send
<<
ends
;
description
=
"Unable to write command : "
+
command_to_send
;
Tango
::
Except
::
re_throw_exception
(
df
,
(
const
char
*
)
"COMMUNICATION_ERROR"
,
description
.
str
(),
description
.
c_
str
(),
(
const
char
*
)
"TangoSerialLink::write"
);
}
...
...
@@ -139,7 +139,6 @@ std::string TangoSerialLink::read (void) throw (Tango::DevFailed)
// ============================================================================
std
::
string
TangoSerialLink
::
write_read
(
std
::
string
command_to_send
)
throw
(
Tango
::
DevFailed
)
{
TangoSys_OMemStream
description
;
std
::
string
respTmp
(
""
);
// long nb_char_written = 0;
...
...
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