pyserial: wait for execute

paulp paulhprobert at gmail.com
Sun Oct 16 01:50:27 EDT 2016


On Saturday, October 15, 2016 at 10:14:18 PM UTC-6, Michael Okuntsov wrote:
> Hello,
> is there a way, other than time.sleep(), to be sure that the command 
> sent through a serial port has been fully executed? I'm interested 
> specifically in SCPI commands in VA-meters such as Keithley and Tektronix.
> Thanks.

Looks like the out_waiting method on serial.Serial class is what you need. Or perhaps use the flush method, the doc seems to say it returns when the write completes.



More information about the Python-list mailing list