Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Tammo Jan Dijkema
HPIB
Commits
ce9a2550
Commit
ce9a2550
authored
Apr 13, 2018
by
Tammo Jan Dijkema
Browse files
Use the same PrologixGpibUsb device for all devices
parent
4f0c57f3
Changes
1
Hide whitespace changes
Inline
Side-by-side
camrasdevices.py
View file @
ce9a2550
import
hpib
import
hpib
from
hpib
import
HpibDevice
from
hpib
import
HpibDevice
_port
=
hpib
.
PrologixGpibUsb
()
class
CamrasHpibDevice
(
HpibDevice
):
class
CamrasHpibDevice
(
HpibDevice
):
"""Wrapper around HPIB commands"""
"""Wrapper around HPIB commands"""
def
__init__
(
self
,
address
):
def
__init__
(
self
,
address
):
self
.
_port
=
hpib
.
PrologixGpibUsb
()
super
(
CamrasHpibDevice
,
self
).
__init__
(
address
,
_port
)
super
(
CamrasHpibDevice
,
self
).
__init__
(
address
,
self
.
_port
)
self
.
__frequency
=
0
self
.
__frequency
=
0
@
property
@
property
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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