Commit 40e456b0 authored by Tammo Jan Dijkema's avatar Tammo Jan Dijkema
Browse files

Don't query hpib twice

parent 7b7133e7
......@@ -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):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment