Re: Data acquisition

2011-10-26 Thread spintronic
Dear friends! Thank you for the discussion. It was really helpful. As mentioned, it was necessary to have a longer delay. Previously I have used a delay of 5 and 10 s but it was not long enough. Now it is 25 s and everything works fine. Thank you again! Best, AS -- http://mail.python.org/mailma

Re: Data acquisition

2011-10-25 Thread spintronic
On Oct 25, 6:15 pm, Jean-Michel Pichavant wrote: > spintronic wrote: > > Dear friends, > > > I have a trouble with understanding the following. I have a very short > > script (shown below) which works fine if I "run" step by step (or line > > by line) in P

Re: Data acquisition

2011-10-25 Thread spintronic
On Oct 25, 6:43 pm, John Gordon wrote: Thanks, John! > Are you running the same python program in both cases? Yes, the same. > Are you in the same directory in both cases? > Does PYTHONPATH and/or sys.path have the same value in both cases? It looks that yes but how can it matter? All I need

Re: Data acquisition

2011-10-25 Thread spintronic
On Oct 25, 6:29 pm, Nick Dokos wrote: > Shot in the dark: could it be that you have to add delays to give the > instrument time to adjust? When you do it from the python shell, line by > line, there is a long delay between one line and the next. > > Nick Hi, Nick! Thanks! You are right but it wa

Data acquisition

2011-10-25 Thread spintronic
Dear friends, I have a trouble with understanding the following. I have a very short script (shown below) which works fine if I "run" step by step (or line by line) in Python shell (type the first line/command -> press Enter, etc.). I can get all numbers (actually, there are no numbers but a long