<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#ffffff">
PS: playing more it is not only the spin box. Other actions taken on
the interface slow it down too. Thus it is not a problem with the spin
boxes, but must be more generic. Only noticed the problem there first.<br>
<br>
On 09/22/2010 04:48 PM, Preisig, Heinz A wrote:
<blockquote cite="mid:4C9A1751.10304@ChemEng.NTNU.NO" type="cite">
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
Certainly:<br>
<br>
I am using a timer to generate time events. On each time event I am
doing a computation, in this case a data acquisition (DA converter) and
then a computation the result of which is sent to a DA converter. The
interface has a couple of spin boxes and sliders and buttons to
manipulate what is happening. In the application I am using now, I
replaced the process interface, which actually goes and receives and
sends data to a serial port, by a simple simulation, which essentially
does nothing.<br>
<br>
What I observe is that when the task executes nicely in the time grid
(1 s). Once I am changing things in a spin box, the task does not make
it to catch the next time event and it keeps on slowing down the more I
am manipulating. I presume there are lots of events being generated in
the background or passed on to other levels. <br>
<br>
I should mention that this is not the first application of this type.
We wrote one last year and it worked just fine. We used it extensively
at the time on very slow machines. The one I am working on now is a
much faster machine and it runs the newer version of python and pyqt.
On the slow one it gets bugged down tremendously. <br>
<br>
Not sure what the problem is....<br>
<br>
Heinz<br>
<br>
On 09/22/2010 04:04 PM, Hans-Peter Jansen wrote:
<blockquote cite="mid:201009221604.02737.hpj@urpla.net" type="cite">
<pre wrap="">On Wednesday 22 September 2010, 15:45:15 Preisig, Heinz A wrote:
</pre>
<blockquote type="cite">
<pre wrap="">I observed that when using integer spin boxes in a timed loop the
performance drops significantly after changing a value.
</pre>
</blockquote>
<pre wrap="">Heinz, could you elaborate on "using integer spin boxes in a timed loop" a
bit, please? I don't grasp the concept of it ATM.
Pete
</pre>
<blockquote type="cite">
<pre wrap="">After dxchanging
them by double spin boxes no deterioration was observed.
Heinz Preisig
_______________________________________________
PyQt mailing list <a moz-do-not-send="true"
class="moz-txt-link-abbreviated"
href="mailto:PyQt@riverbankcomputing.com">PyQt@riverbankcomputing.com</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext"
href="http://www.riverbankcomputing.com/mailman/listinfo/pyqt">http://www.riverbankcomputing.com/mailman/listinfo/pyqt</a>
</pre>
</blockquote>
<pre wrap="">
_______________________________________________
PyQt mailing list <a moz-do-not-send="true"
class="moz-txt-link-abbreviated"
href="mailto:PyQt@riverbankcomputing.com">PyQt@riverbankcomputing.com</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext"
href="http://www.riverbankcomputing.com/mailman/listinfo/pyqt">http://www.riverbankcomputing.com/mailman/listinfo/pyqt</a>
</pre>
</blockquote>
<br>
<div class="moz-signature">-- <br>
<br>
<br>
<table style="text-align: left; width: 785px; height: 124px;"
border="1" cellpadding="2" cellspacing="1">
<tbody>
<tr>
<td style="width: 50%; vertical-align: top;"><span
style="font-weight: bold;">Heinz A Preisig</span><br>
Professor of Process Systems Engineering</td>
<td style="width: 50px; vertical-align: top;"><span style=""
lang="EN-US">Private: <br>
Øvre Bakklandet 62 B, 7013 Trondheim, Norway<br>
</span></td>
</tr>
<tr>
<td style="vertical-align: top;"><span
style="font-style: italic;">Department
of
Chemical Engineering</span><br>
<div style="text-align: left;"><span
style="font-weight: bold; font-style: italic;"></span><span
style="font-weight: bold; font-style: italic;">Norwegian
University of Science and
Technology </span><span
style="font-size: 12pt; font-family: "Times New Roman";"></span><br>
</div>
<span style="font-size: 12pt; font-family: "Times New Roman";"></span><span
style="font-weight: bold; font-style: italic;"></span><span
style="font-style: italic;">N – 7491 Trondheim, Norway</span></td>
<td style="vertical-align: top;">Tel direct:<span style="">
</span> <span style="" lang="EN-US">+47 <span style=""> </span><span
style=""> </span>735
92807<span style=""><br>
</span></span><span style="" lang="EN-US">Tel mob:<span style="">
</span> +47 <span style=""> </span>9754
1334<br>
</span><span style="" lang="EN-US">e-mail:<span style="">
</span><a moz-do-not-send="true"
href="mailto:Heinz.Preisig@chemeng.ntnu.no">Heinz.Preisig@chemeng.ntnu.no</a><br>
</span><span style="" lang="EN-US">web:<span style="">
</span><a moz-do-not-send="true"
href="http://www.chemeng.ntnu.no/%7Epreisig">www.chemeng.ntnu.no\~preisig</a></span></td>
</tr>
</tbody>
</table>
<span style="font-weight: bold;"></span><br>
<span style="" lang="EN-US"></span>
</div>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
PyQt mailing list <a class="moz-txt-link-abbreviated" href="mailto:PyQt@riverbankcomputing.com">PyQt@riverbankcomputing.com</a>
<a class="moz-txt-link-freetext" href="http://www.riverbankcomputing.com/mailman/listinfo/pyqt">http://www.riverbankcomputing.com/mailman/listinfo/pyqt</a></pre>
</blockquote>
<br>
<div class="moz-signature">-- <br>
<br>
<br>
<table style="text-align: left; width: 785px; height: 124px;" border="1"
cellpadding="2" cellspacing="1">
<tbody>
<tr>
<td style="width: 50%; vertical-align: top;"><span
style="font-weight: bold;">Heinz A Preisig</span><br>
Professor of Process Systems Engineering</td>
<td style="width: 50px; vertical-align: top;"><span style=""
lang="EN-US">Private: <br>
Øvre Bakklandet 62 B, 7013 Trondheim, Norway<br>
</span></td>
</tr>
<tr>
<td style="vertical-align: top;"><span style="font-style: italic;">Department
of
Chemical Engineering</span><br>
<div style="text-align: left;"><span
style="font-weight: bold; font-style: italic;"></span><span
style="font-weight: bold; font-style: italic;">Norwegian
University of Science and
Technology </span><span
style="font-size: 12pt; font-family: "Times New Roman";"></span><br>
</div>
<span style="font-size: 12pt; font-family: "Times New Roman";"></span><span
style="font-weight: bold; font-style: italic;"></span><span
style="font-style: italic;">N – 7491 Trondheim, Norway</span></td>
<td style="vertical-align: top;">Tel direct:<span style="">
</span> <span style="" lang="EN-US">+47 <span style=""> </span><span
style=""> </span>735
92807<span style=""><br>
</span></span><span style="" lang="EN-US">Tel mob:<span style="">
</span> +47 <span style=""> </span>9754
1334<br>
</span><span style="" lang="EN-US">e-mail:<span style="">
</span><a href="mailto:Heinz.Preisig@chemeng.ntnu.no">Heinz.Preisig@chemeng.ntnu.no</a><br>
</span><span style="" lang="EN-US">web:<span style="">
</span><a href="http://www.chemeng.ntnu.no/%7Epreisig">www.chemeng.ntnu.no\~preisig</a></span></td>
</tr>
</tbody>
</table>
<span style="font-weight: bold;"></span><br>
<span style="" lang="EN-US"></span>
</div>
</body>
</html>