Discussion:
live ploting guiqwt
l***@public.gmane.org
2013-06-05 09:43:51 UTC
Permalink
Does anyone has already created a program using guiqwt to plot live data
extracted from devices such as multimeters etc (using Pyvisa)?

I've created one using PyQt and matplotlib but the performances are not as
good as Qwt and I'm not a good programmer so if somebody has a well
structured program base I would be glad to start with that.

Thanks,

Fabien
--
You received this message because you are subscribed to the Google Groups "guidata/guiqwt" group.
To unsubscribe from this group and stop receiving emails from it, send an email to guidata_guiqwt+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
For more options, visit https://groups.google.com/groups/opt_out.
Carlos Pascual
2013-06-06 07:08:27 UTC
Permalink
X-Received: by 10.180.187.51 with SMTP id fp19mr1130072wic.1.1370502521402;
Thu, 06 Jun 2013 00:08:41 -0700 (PDT)
X-BeenThere: guidata_guiqwt-/***@public.gmane.org
Received: by 10.180.19.227 with SMTP id i3ls860796wie.25.gmail; Thu, 06 Jun
2013 00:08:41 -0700 (PDT)
X-Received: by 10.180.76.76 with SMTP id i12mr4184221wiw.6.1370502521027;
Thu, 06 Jun 2013 00:08:41 -0700 (PDT)
Received: from berlin.cells.es (berlin.cells.es. [84.89.245.3])
by gmr-mx.google.com with ESMTP id d5si386362wie.1.2013.06.06.00.08.40
for <guidata_guiqwt-/***@public.gmane.org>;
Thu, 06 Jun 2013 00:08:41 -0700 (PDT)
Received-SPF: pass (google.com: domain of cpascual-***@public.gmane.org designates 84.89.245.3 as permitted sender) client-ip=84.89.245.3;
Received: from post01.cells.es (unknown [84.89.246.164])
by berlin.cells.es (Postfix) with ESMTP id A82172D99A;
Thu, 6 Jun 2013 09:08:40 +0200 (CEST)
Received: from pc218.localnet (pc218.cells.es [84.89.248.18])
(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
(No client certificate requested)
by post01.cells.es (Postfix) with ESMTPSA id 922A7260053;
Thu, 6 Jun 2013 09:08:40 +0200 (CEST)
User-Agent: KMail/1.13.7 (Linux/3.2.0-4-amd64; KDE/4.8.4; x86_64; ; )
In-Reply-To: <b4d50d40-49be-4ef4-8553-e811f09118cf-/***@public.gmane.org>
X-Original-Sender: cpascual-***@public.gmane.org
X-Original-Authentication-Results: gmr-mx.google.com; spf=pass
(google.com: domain of cpascual-***@public.gmane.org designates 84.89.245.3 as permitted
sender) smtp.mail=cpascual-***@public.gmane.org
Precedence: list
Mailing-list: list guidata_guiqwt-/***@public.gmane.org; contact guidata_guiqwt+owners-/***@public.gmane.org
List-ID: <guidata_guiqwt.googlegroups.com>
X-Google-Group-Id: 808950355297
List-Post: <http://groups.google.com/group/guidata_guiqwt/post?hl=en_FR>, <mailto:guidata_guiqwt-/***@public.gmane.org>
List-Help: <http://groups.google.com/support/?hl=en_FR>, <mailto:guidata_guiqwt+help-/***@public.gmane.org>
List-Archive: <http://groups.google.com/group/guidata_guiqwt?hl=en_FR>
Sender: guidata_guiqwt-/***@public.gmane.org
List-Subscribe: <http://groups.google.com/group/guidata_guiqwt/subscribe?hl=en_FR>,
<mailto:guidata_guiqwt+subscribe-/***@public.gmane.org>
List-Unsubscribe: <http://groups.google.com/group/guidata_guiqwt/subscribe?hl=en_FR>,
<mailto:googlegroups-manage+808950355297+unsubscribe-/***@public.gmane.org>
Archived-At: <http://permalink.gmane.org/gmane.comp.python.scientific.guidata-guiqwt/254>

Hi Fabien,

We do it at our facility. The hardware interface (reading from many different
hardwares in a distributed system) is done with (Py)Tango[1] and the GUIs for
control and data acquisition are done with Taurus [2].
Of course this solution may be too much if you do not require a *distributed*
control/acquisition system.
On the good side, if you are working with Debian or Ubuntu, it is really
simple to try it since everything is pre-packaged in the official repositories

[1] http://www.tango-controls.org/
[2] http://www.tango-controls.org/static/taurus/latest/doc/html/index.html
Post by l***@public.gmane.org
Does anyone has already created a program using guiqwt to plot live data
extracted from devices such as multimeters etc (using Pyvisa)?
I've created one using PyQt and matplotlib but the performances are not as
good as Qwt and I'm not a good programmer so if somebody has a well
structured program base I would be glad to start with that.
Thanks,
Fabien
--
+----------------------------------------------------+
Carlos Pascual Izarra
Scientific Software Coordinator
Computing Division
Cells / Alba Synchrotron [http:/www.cells.es]
Carretera BP 1413 de Cerdanyola-Sant Cugat, Km. 3.3
E-08290 Cerdanyola del Valles (Barcelona), Spain
E-mail: cpascual-***@public.gmane.org
Phone: +34 93 592 4428
+----------------------------------------------------+
--
You received this message because you are subscribed to the Google Groups "guidata/guiqwt" group.
To unsubscribe from this group and stop receiving emails from it, send an email to guidata_guiqwt+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
For more options, visit https://groups.google.com/groups/opt_out.
l***@public.gmane.org
2013-06-06 08:14:44 UTC
Permalink
Hi Carlos,

Thank you very much. It looks like a very nice soft but I think it's far
too complicated for my utilisation :) and unfortunatly we are using Ms
Windows in our lab. Actually I managed to create a simple software but the
graph is freezing each time I ask something to any device and even more
when I use time.sleep(xxxx) to wait between two measurments. Do you think I
need to create a multi-threaded software?

Thanks again,

Fabien
Post by Carlos Pascual
Hi Fabien,
We do it at our facility. The hardware interface (reading from many different
hardwares in a distributed system) is done with (Py)Tango[1] and the GUIs for
control and data acquisition are done with Taurus [2].
Of course this solution may be too much if you do not require a *distributed*
control/acquisition system.
On the good side, if you are working with Debian or Ubuntu, it is really
simple to try it since everything is pre-packaged in the official repositories
[1] http://www.tango-controls.org/
[2] http://www.tango-controls.org/static/taurus/latest/doc/html/index.html
Post by l***@public.gmane.org
Does anyone has already created a program using guiqwt to plot live data
extracted from devices such as multimeters etc (using Pyvisa)?
I've created one using PyQt and matplotlib but the performances are not
as
Post by l***@public.gmane.org
good as Qwt and I'm not a good programmer so if somebody has a well
structured program base I would be glad to start with that.
Thanks,
Fabien
--
+----------------------------------------------------+
Carlos Pascual Izarra
Scientific Software Coordinator
Computing Division
Cells / Alba Synchrotron [http:/www.cells.es]
Carretera BP 1413 de Cerdanyola-Sant Cugat, Km. 3.3
E-08290 Cerdanyola del Valles (Barcelona), Spain
Phone: +34 93 592 4428
+----------------------------------------------------+
--
You received this message because you are subscribed to the Google Groups "guidata/guiqwt" group.
To unsubscribe from this group and stop receiving emails from it, send an email to guidata_guiqwt+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
For more options, visit https://groups.google.com/groups/opt_out.
Carlos Pascual
2013-06-06 12:38:34 UTC
Permalink
Post by l***@public.gmane.org
Hi Carlos,
Thank you very much. It looks like a very nice soft but I think it's far
too complicated for my utilisation :)
and unfortunatly we are using Ms
Windows in our lab.
Tango+Taurus work on Windows too, though
Post by l***@public.gmane.org
Actually I managed to create a simple software but the
graph is freezing each time I ask something to any device and even more
when I use time.sleep(xxxx) to wait between two measurments. Do you think I
need to create a multi-threaded software?
Definitely, you will need multithreading....
BUT since you are using Qt, you can get hide the complexity with a QTimer (as
long as you do not need to do very complex things).
Post by l***@public.gmane.org
Thanks again,
Fabien
Post by Carlos Pascual
Hi Fabien,
We do it at our facility. The hardware interface (reading from many different
hardwares in a distributed system) is done with (Py)Tango[1] and the GUIs for
control and data acquisition are done with Taurus [2].
Of course this solution may be too much if you do not require a *distributed*
control/acquisition system.
On the good side, if you are working with Debian or Ubuntu, it is really
simple to try it since everything is pre-packaged in the official repositories
[1] http://www.tango-controls.org/
[2]
http://www.tango-controls.org/static/taurus/latest/doc/html/index.html
Post by l***@public.gmane.org
Does anyone has already created a program using guiqwt to plot live
data extracted from devices such as multimeters etc (using Pyvisa)?
I've created one using PyQt and matplotlib but the performances are not
as
Post by l***@public.gmane.org
good as Qwt and I'm not a good programmer so if somebody has a well
structured program base I would be glad to start with that.
Thanks,
Fabien
--
+----------------------------------------------------+
Carlos Pascual Izarra
Scientific Software Coordinator
Computing Division
Cells / Alba Synchrotron [http:/www.cells.es]
Carretera BP 1413 de Cerdanyola-Sant Cugat, Km. 3.3
E-08290 Cerdanyola del Valles (Barcelona), Spain
E-mail: cpascual-***@public.gmane.org
Phone: +34 93 592 4428
+----------------------------------------------------+
--
You received this message because you are subscribed to the Google Groups "guidata/guiqwt" group.
To unsubscribe from this group and stop receiving emails from it, send an email to guidata_guiqwt+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
For more options, visit https://groups.google.com/groups/opt_out.
s***@public.gmane.org
2013-06-06 13:21:49 UTC
Permalink
Hi Fabien,

I also used PyQt for the GUI and pyVisa, serial etc. for the instrument
control. It works very fine but, as Carlos told you, you need
multithreading.
My scripts have a main class based on PyQt (QMainWindow) that shows plots,
images etc. acquired by the instruments. This class is calling classes
dedicated to instruments communication. These classes inherit from QThread
to be able to have control of the GUI also when there is communication with
the instrument. These scripts are running on Windows.

Carlos, I will test Tango and Taurus that I don't know. Thanks.

Boris
Post by l***@public.gmane.org
Hi Carlos,
Thank you very much. It looks like a very nice soft but I think it's far
too complicated for my utilisation :) and unfortunatly we are using Ms
Windows in our lab. Actually I managed to create a simple software but the
graph is freezing each time I ask something to any device and even more
when I use time.sleep(xxxx) to wait between two measurments. Do you think I
need to create a multi-threaded software?
Thanks again,
Fabien
Post by Carlos Pascual
Hi Fabien,
We do it at our facility. The hardware interface (reading from many different
hardwares in a distributed system) is done with (Py)Tango[1] and the GUIs for
control and data acquisition are done with Taurus [2].
Of course this solution may be too much if you do not require a *distributed*
control/acquisition system.
On the good side, if you are working with Debian or Ubuntu, it is really
simple to try it since everything is pre-packaged in the official repositories
[1] http://www.tango-controls.org/
[2]
http://www.tango-controls.org/static/taurus/latest/doc/html/index.html
Post by l***@public.gmane.org
Does anyone has already created a program using guiqwt to plot live
data
Post by l***@public.gmane.org
extracted from devices such as multimeters etc (using Pyvisa)?
I've created one using PyQt and matplotlib but the performances are not
as
Post by l***@public.gmane.org
good as Qwt and I'm not a good programmer so if somebody has a well
structured program base I would be glad to start with that.
Thanks,
Fabien
--
+----------------------------------------------------+
Carlos Pascual Izarra
Scientific Software Coordinator
Computing Division
Cells / Alba Synchrotron [http:/www.cells.es]
Carretera BP 1413 de Cerdanyola-Sant Cugat, Km. 3.3
E-08290 Cerdanyola del Valles (Barcelona), Spain
Phone: +34 93 592 4428
+----------------------------------------------------+
--
You received this message because you are subscribed to the Google Groups "guidata/guiqwt" group.
To unsubscribe from this group and stop receiving emails from it, send an email to guidata_guiqwt+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
For more options, visit https://groups.google.com/groups/opt_out.
Fabien Lafont
2013-06-06 16:37:42 UTC
Permalink
Hi everyone.

Boris, could you send me your program or the basic structure of your
program to understand a bit better how you manage to do it? I've found this
project: https://code.google.com/p/pythics/

It looks very nice except the fact they use xml to set the graphical user
interface. Why to add another language to do it?

Thanks again!

Fabien
Post by Carlos Pascual
Hi Fabien,
I also used PyQt for the GUI and pyVisa, serial etc. for the instrument
control. It works very fine but, as Carlos told you, you need
multithreading.
My scripts have a main class based on PyQt (QMainWindow) that shows plots,
images etc. acquired by the instruments. This class is calling classes
dedicated to instruments communication. These classes inherit from QThread
to be able to have control of the GUI also when there is communication with
the instrument. These scripts are running on Windows.
Carlos, I will test Tango and Taurus that I don't know. Thanks.
Boris
Post by l***@public.gmane.org
Hi Carlos,
Thank you very much. It looks like a very nice soft but I think it's far
too complicated for my utilisation :) and unfortunatly we are using Ms
Windows in our lab. Actually I managed to create a simple software but the
graph is freezing each time I ask something to any device and even more
when I use time.sleep(xxxx) to wait between two measurments. Do you think I
need to create a multi-threaded software?
Thanks again,
Fabien
Post by Carlos Pascual
Hi Fabien,
We do it at our facility. The hardware interface (reading from many different
hardwares in a distributed system) is done with (Py)Tango[1] and the GUIs for
control and data acquisition are done with Taurus [2].
Of course this solution may be too much if you do not require a *distributed*
control/acquisition system.
On the good side, if you are working with Debian or Ubuntu, it is really
simple to try it since everything is pre-packaged in the official repositories
[1] http://www.tango-controls.org/
[2] http://www.tango-controls.org/**static/taurus/latest/doc/html/**
index.html<http://www.tango-controls.org/static/taurus/latest/doc/html/index.html>
Post by l***@public.gmane.org
Does anyone has already created a program using guiqwt to plot live
data
Post by l***@public.gmane.org
extracted from devices such as multimeters etc (using Pyvisa)?
I've created one using PyQt and matplotlib but the performances are
not as
Post by l***@public.gmane.org
good as Qwt and I'm not a good programmer so if somebody has a well
structured program base I would be glad to start with that.
Thanks,
Fabien
--
+-----------------------------**-----------------------+
Carlos Pascual Izarra
Scientific Software Coordinator
Computing Division
Cells / Alba Synchrotron [http:/www.cells.es]
Carretera BP 1413 de Cerdanyola-Sant Cugat, Km. 3.3
E-08290 Cerdanyola del Valles (Barcelona), Spain
Phone: +34 93 592 4428
+-----------------------------**-----------------------+
--
You received this message because you are subscribed to the Google Groups "guidata/guiqwt" group.
To unsubscribe from this group and stop receiving emails from it, send an email to guidata_guiqwt+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
For more options, visit https://groups.google.com/groups/opt_out.
Loading...