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
40e456b0
Commit
40e456b0
authored
Apr 26, 2018
by
Tammo Jan Dijkema
Browse files
Don't query hpib twice
parent
7b7133e7
Changes
1
Hide whitespace changes
Inline
Side-by-side
camrasdevices.py
View file @
40e456b0
...
...
@@ -23,7 +23,7 @@ class CamrasHpibDevice(HpibDevice):
freq_str
=
self
.
query
(
"freq?"
)
if
len
(
freq_str
)
==
0
:
raise
RuntimeError
(
"Camras device at address {} is not responding"
.
format
(
self
.
_hpib_address
))
return
int
(
float
(
self
.
query
(
"freq?"
)
))
*
u
.
Hz
return
int
(
float
(
freq_str
))
*
u
.
Hz
@
frequency
.
setter
def
frequency
(
self
,
freq
):
...
...
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