No write_readlines() in serial.py Needed for SCPI.
Hello,
I'm trying to talk to a Keithley through a serial line.
In comm/serial.py, Serial object has write_readline(), but not write_readlines() while in comm/scpi.py the read method of SCPI object call interface.write_readlines(msg, len(queries))
Simple test to show this issue:
ipython -m bliss.controllers.keithley serial /dev/ttyUSB0 Welcome to Keithley console (connected to KeithleySCPI(SCPI(Serial(/dev/ttyUSB0)))) (interactive, no gevent)
keithley> *k.command('IDN?') Traceback (most recent call last): File "", line 1, in File "bliss/comm/scpi.py", line 515, in command return f(*cmds, **kwargs) File "bliss/comm/scpi.py", line 567, in read raw_results = self.interface.write_readlines(msg, len(queries)) AttributeError: Serial instance has no attribute 'write_readlines'
This: 0f1f6b92 sort of solved it for me.
Yves,