Re: Data acquisition

2011-10-26 Thread Dietmar Schwertberger
Am 26.10.2011 17:58, schrieb spintronic: 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. If you use the correct sequence

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 Paul Simon
"spintronic" wrote in message news:362e368f-829e-4477-bcfc-c0650d231...@j7g2000yqi.googlegroups.com... > 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 (ty

Re: Data acquisition

2011-10-25 Thread Dietmar Schwertberger
Am 25.10.2011 19:22, schrieb 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. Thanks! You a

Re: Data acquisition

2011-10-25 Thread John Gordon
In <86e6bfb8-17e1-4544-97ba-7299db8a8...@p16g2000yqj.googlegroups.com> spintronic writes: > > 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 it is to import > the visa modu

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 Python shell (type the first line/command -

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

Re: Data acquisition

2011-10-25 Thread John Gordon
In <362e368f-829e-4477-bcfc-c0650d231...@j7g2000yqi.googlegroups.com> spintronic writes: > Any ideas? Why there is a difference when I run the script or do it > command by command? Are you running the same python program in both cases? Are you in the same directory in both cases? Does PYTHONP

Re: Data acquisition

2011-10-25 Thread Nick Dokos
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 Python shell (type the first line/command -> press Enter, > etc.). I can get all numbers (actually,

Re: Data acquisition

2011-10-25 Thread Jean-Michel Pichavant
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 Python shell (type the first line/command -> press Enter, etc.). I can get all numbers (actually, there are no