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
ite("CALC1:DATA? FDATA") > > a=mw.read() > > print a > === > (That is really all!) > > > PS In this case I use Python Enthought for Windows, but I am not an > expert in Windows (I work usually in Linux but now I need to run this >

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
.write("*RST") > > mw.write("CALC1:DATA? FDATA") > > > a=mw.read() > > > print a > > === > > (That is really all!) > > > PS In this case I use Python Enthought for Windows, but I am not an > > expert

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
== > (That is really all!) > > > PS In this case I use Python Enthought for Windows, but I am not an > expert in Windows (I work usually in Linux but now I need to run this > data acquisition under Windows). > -- > http://mail.python.org/mailman/listinfo/pytho

Re: Data acquisition

2011-10-25 Thread Jean-Michel Pichavant
t;GPIB0::20::INSTR", timeout = None) mw.write("*RST") mw.write("CALC1:DATA? FDATA") a=mw.read() print a === (That is really all!) PS In this case I use Python Enthought for Windows, but I am not an expert in Windows (I work usually in Linux but

Data acquisition

2011-10-25 Thread spintronic
", timeout = None) mw.write("*RST") mw.write("CALC1:DATA? FDATA") a=mw.read() print a === (That is really all!) PS In this case I use Python Enthought for Windows, but I am not an expert in Windows (I work usually in Linux but now I need

Re: Design Question. Data Acquisition/Display related.

2005-05-17 Thread Alex Verstraeten
StepH wrote: >>a simple loop could do it >> - handle user events >> - collect data >> - update displays >> - sleep >> >> >Here i've a prob. (due to the fact that I start both with Python & >TkInter). In TkInter, you run your app by launching a mainloop() >routine, right ? So, how, in my fo

Re: Design Question. Data Acquisition/Display related.

2005-05-17 Thread StepH
Alex Verstraeten a écrit : > StepH wrote: > >> 1./ Is each "display" must responsible to acquire/read the data ? >> 2./ Or an engine collect the data then send them to each "display" ? >> >> >> > I'd keep it simple: > > - DataCollector class > asociated with one or more display instances (implem

Re: Design Question. Data Acquisition/Display related.

2005-05-17 Thread Alex Verstraeten
StepH wrote: >1./ Is each "display" must responsible to acquire/read the data ? >2./ Or an engine collect the data then send them to each "display" ? > > > I'd keep it simple: - DataCollector class asociated with one or more display instances (implemented as a list of display subscribers) it c

Design Question. Data Acquisition/Display related.

2005-05-17 Thread StepH
Hi, I'm building a little application, which the goal is to: 1./ Collect data via Serial line and or via a file (for playback). 2./ Display these data as graph, oscilloscope, ... How manage this ? 1./ Is each "display" must responsible to acquire/read the data ? 2./ Or an engine collect the dat