Urgent:Serial Port Read/Write

chandan kumar chandan_psr at yahoo.co.in
Thu May 9 11:35:53 EDT 2013


Hi all,I'm new to python and facing issue using serial in python.I'm facing the below error 
    ser.write(port,command)NameError: global name 'ser' is not defined
Please find the attached script and let me know whats wrong in my script and also how can i read data from serial port for the  same script.

Best Regards,Chandan.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20130509/9783380b/attachment.html>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: RunScripts.py
URL: <http://mail.python.org/pipermail/python-list/attachments/20130509/9783380b/attachment.ksh>


More information about the Python-list mailing list