Urgent:Serial Port Read/Write

2013-05-09 Thread chandan kumar
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

Re: Urgent:Serial Port Read/Write

2013-05-09 Thread Chris Angelico
On Fri, May 10, 2013 at 1:35 AM, chandan kumar chandan_...@yahoo.co.in wrote: 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

Re: Urgent:Serial Port Read/Write

2013-05-09 Thread Frank Miles
On Thu, 09 May 2013 23:35:53 +0800, chandan kumar wrote: 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

Re: Urgent:Serial Port Read/Write

2013-05-09 Thread MRAB
On 09/05/2013 16:35, chandan kumar wrote: 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

Re: Urgent:Serial Port Read/Write

2013-05-09 Thread Chris Angelico
On Fri, May 10, 2013 at 1:35 AM, chandan kumar chandan_...@yahoo.co.in wrote: 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. Don't do this: except serial.serialutil.SerialException: print