Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Instrument Control
NomadModules
Commits
5aa39f71
Commit
5aa39f71
authored
Oct 21, 2021
by
locatelli
Browse files
Remove dependency of the include gpib/ib.h
parent
0795ca0a
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/drivers/global/Gpib.cpp
View file @
5aa39f71
...
...
@@ -29,7 +29,7 @@ const int32 Gpib::EOS_ON = 1; // seconds
const
int32
Gpib
::
EOS_OFF
=
0
;
// seconds
const
int32
Gpib
::
EOT_ON
=
1
;
// seconds
const
int32
Gpib
::
EOT_OFF
=
0
;
// seconds
const
int32
Gpib
::
DEFAULT_TIMEOUT
=
T3s
;
// seconds
//
const int32 Gpib::DEFAULT_TIMEOUT = T3s; // seconds
const
int32
Gpib
::
DEFAULT_EOI
=
1
;
const
int32
Gpib
::
DEFAULT_EOS
=
0
;
const
int32
Gpib
::
DEFAULT_SAD
=
0
;
// seconds
...
...
src/drivers/legacy/def/GPIBDef.h
View file @
5aa39f71
...
...
@@ -23,11 +23,11 @@
#include
<stdlib.h>
#include
<unistd.h>
#ifdef MACOSX
#include
"ni488.h"
#else
#include
"gpib/ib.h"
#endif
//
#ifdef MACOSX
//
#include "ni488.h"
//
#else
//
#include "gpib/ib.h"
//
#endif
namespace
GPIBDef
{
...
...
@@ -42,7 +42,7 @@ static const int32 EOS_ON = 1; // seconds
static
const
int32
EOS_OFF
=
0
;
// seconds
static
const
int32
EOT_ON
=
1
;
// seconds
static
const
int32
EOT_OFF
=
0
;
// seconds
static
const
int32
DEFAULT_TIMEOUT
=
T3s
;
// seconds
//
static const int32 DEFAULT_TIMEOUT = T3s; // seconds
static
const
int32
DEFAULT_EOI
=
1
;
static
const
int32
DEFAULT_EOS
=
0
;
static
const
int32
DEFAULT_SAD
=
0
;
// seconds
...
...
@@ -60,4 +60,4 @@ static const char LF[] = "\xA";
}
#endif //GPIBDEF_H
\ No newline at end of file
#endif //GPIBDEF_H
src/drivers/legacy/nationalinst/gpib/RealGPIBDriver.cpp
View file @
5aa39f71
...
...
@@ -100,7 +100,7 @@ void RealGPIBDriver::init()
ostringstream
devbuf
;
int32
id
=
ibdev
(
unit
,
loop
,
GPIBDef
::
DEFAULT_SAD
,
GPIBDef
::
DEFAULT_TIMEOUT
,
T3s
,
GPIBDef
::
DEFAULT_EOI
,
GPIBDef
::
DEFAULT_EOS
);
if
(
id
<
0
)
{
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment