Re: How to make statements running in strictly sequential fashion like in an interactive shell

2011-08-22 Thread lzlu123
On Aug 19, 11:06 pm, Javier wrote: > Never used it, but I think you can try this: > > Pexpect - a Pure Python Expect-like module > Pexpect is a pure Python Expect-like module. Pexpect makes > Python...www.noah.org/python/pexpect/ > > > > > > > > lzlu123 w

Re: How to make statements running in strictly sequential fashion like in an interactive shell

2011-08-22 Thread lzlu123
On Aug 19, 6:38 pm, aspineux wrote: > On Aug 19, 5:00 pm, lzlu123 wrote: > > > > > > > > > > > I have an instrument that has a RS232 type serial comm port and I need > > to connect to and control. I use Python 3.2 in Windows XP, plus > > pySerial

How to make statements running in strictly sequential fashion like in an interactive shell

2011-08-19 Thread lzlu123
I have an instrument that has a RS232 type serial comm port and I need to connect to and control. I use Python 3.2 in Windows XP, plus pySerial module. I have a problem when I execute a script consisting of statements that open the comm port, configure it, write strings to and receive strings from