Commit c59cc9b0 authored by Tammo Jan Dijkema's avatar Tammo Jan Dijkema
Browse files

Initialize hpib upon launching thread

parent c5d3e7f5
...@@ -18,6 +18,7 @@ class CamrasHpibDevice(object): ...@@ -18,6 +18,7 @@ class CamrasHpibDevice(object):
if not command_thread: if not command_thread:
serial_port = serial.Serial("/dev/ttyUSB0") serial_port = serial.Serial("/dev/ttyUSB0")
command_thread = serial.threaded.ReaderThread(serial_port, hpib.GPIBProtocol) command_thread = serial.threaded.ReaderThread(serial_port, hpib.GPIBProtocol)
command_thread.protocol.init_hpib()
@property @property
def frequency(self): def frequency(self):
......
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