<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]-->
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";
        color:black;}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:blue;
        text-decoration:underline;}
pre
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";
        color:black;}
span.E-MailFormatvorlage18
        {mso-style-type:personal-reply;
        font-family:Arial;
        color:navy;}
@page Section1
        {size:595.3pt 841.9pt;
        margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.Section1
        {page:Section1;}
/* List Definitions */
@list l0
        {mso-list-id:278994283;
        mso-list-type:hybrid;
        mso-list-template-ids:2075320092 48894008 67567619 67567621 67567617 67567619 67567621 67567617 67567619 67567621;}
@list l0:level1
        {mso-level-start-at:16;
        mso-level-number-format:bullet;
        mso-level-text:-;
        mso-level-tab-stop:36.0pt;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        font-family:Arial;
        mso-fareast-font-family:"Times New Roman";}
ol
        {margin-bottom:0cm;}
ul
        {margin-bottom:0cm;}
-->
</style>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body bgcolor=white lang=DE link=blue vlink=blue>
<div class=Section1>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB
style='font-size:10.0pt;font-family:Arial;color:navy'>Ben, thanks for the reply
</span></font><font size=2 color=navy face=Wingdings><span lang=EN-GB
style='font-size:10.0pt;font-family:Wingdings;color:navy'>J</span></font><font
size=2 color=navy face=Arial><span lang=EN-GB style='font-size:10.0pt;
font-family:Arial;color:navy'><o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB
style='font-size:10.0pt;font-family:Arial;color:navy'>You're right, this is the
plugin to use, if you want only one scalar at the end (cost over the whole data
set). However, I fear that what Mathieu wanted is a "sliding window",
or "moving sum", which the plugin currently does not support. It
should be easy (and it would be interesting) to add an option to compute either
the cumulative sum over the whole data, or an output vector showing the
cumulative sum over a given number of samples. The only "difficult"
point in that case would be the values to use at the beginning, i.e. for the
first samples until we have the desired window width.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB
style='font-size:10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB
style='font-size:10.0pt;font-family:Arial;color:navy'>And some other ideas:<o:p></o:p></span></font></p>
<p class=MsoNormal style='margin-left:36.0pt;text-indent:-18.0pt;mso-list:l0 level1 lfo1'><![if !supportLists]><font
size=2 color=navy face=Arial><span lang=EN-GB style='font-size:10.0pt;
font-family:Arial;color:navy'><span style='mso-list:Ignore'>-<font size=1
face="Times New Roman"><span style='font:7.0pt "Times New Roman"'>
</span></font></span></span></font><![endif]><font size=2 color=navy
face=Arial><span lang=EN-GB style='font-size:10.0pt;font-family:Arial;
color:navy'>use the "Sum" automatic scalar, and generate another
scalar from it if you need a scale factor (Create->Scalar->Generate and
type your equation in the "Value" field of the "Generate"
group). This has the advantage that you can then display the value in a text label
directly. <o:p></o:p></span></font></p>
<p class=MsoNormal style='margin-left:36.0pt;text-indent:-18.0pt;mso-list:l0 level1 lfo1'><![if !supportLists]><font
size=2 color=navy face=Arial><span lang=EN-GB style='font-size:10.0pt;
font-family:Arial;color:navy'><span style='mso-list:Ignore'>-<font size=1
face="Times New Roman"><span style='font:7.0pt "Times New Roman"'>
</span></font></span></span></font><![endif]><font size=2 color=navy
face=Arial><span lang=EN-GB style='font-size:10.0pt;font-family:Arial;
color:navy'>use the Data range tool to select the right number of samples, and scroll
through the data "page-wise". If the update mechanism is working as
it should, you should see the label update automatically. Unfortunately, right
now it seems that scalars from other scalars don't get updated. Barth, would
this be easy to fix?<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB
style='font-size:10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB
style='font-size:10.0pt;font-family:Arial;color:navy'>Mathieu: if it's not
clear or if we haven't understood the case, just refine your question. <o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB
style='font-size:10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB
style='font-size:10.0pt;font-family:Arial;color:navy'>Nicolas<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB
style='font-size:10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<div style='border:none;border-left:solid blue 1.5pt;padding:0cm 0cm 0cm 4.0pt'>
<div>
<br><table border="0" style="border-collapse: collapse" width="38%" id="table1">
        <tr>
                <td width="468" height="8"><b><font face="Arial" size="1">EUROCOPTER DEUTSCHLAND GmbH</font></b></td>
        </tr>
        <tr>
                <td width="468" height="8"><b><font face="Arial" size="1">Sitz der Gesellschaft / Registered Office: Donauwörth</font></b></td>
        </tr>        
        <tr>
                <td width="468" height="8"><b><font face="Arial" size="1">Registergericht / Registration Court: Amtsgericht Augsburg HRB 16508</font></b></td>
        </tr>
        <tr>
                <td width="468" height="8"><b><font face="Arial" size="1">Vorsitzender des Aufsichtsrates / Chairman of the Supervisory Board: Dr. Lutz Bertling</font></b></td>
        </tr>
        <tr>
                <td width="468" height="8"><b><font face="Arial" size="1">Geschäftsführung / Board of Management:</font></b></td>
        </tr>
        <tr>
                <td width="468" height="8"><b><font face="Arial" size="1">Dr. Wolfgang Schoder, Vorsitzender / CEO; Friedrich-Wilhelm Hormel; Ralf Barnscheidt</font></b></td>
        </tr>
        <tr>
                <td width="468" height="8" style="border-bottom-style: double; border-bottom-width: 3px"><font face="Arial" size="1"> </font></td>        
        </tr>
</table>
<table border="0" style="border-collapse: collapse" width="688" id="table2" height="8">
        <tr>
                <td width="686" height="8"><font face="Arial" size="1"> </td>                        
        </tr>
        <tr>
                <td width="686" height="8"><font face="Arial" size="1">CONFIDENTIALITY NOTICE</td>                
        </tr>        
        <tr>
                <td width="686" height="8"><font face="Arial" size="1"> </td>                        
        </tr>                
        <tr>
                <td width="686" height="8"><font face="Arial" size="1">This communication and the information it contains is intended for the addressee ( s ) named above and for no other persons or organizations. </td>                                 
        </tr>
        <tr>
                <td width="686" height="8"><font face="Arial" size="1">It is confidential and may be legally privileged and protected by law. The unauthorized use, copying or disclosure of this communication </td>                        
        </tr>
        <tr>
                <td width="686" height="8"><font face="Arial" size="1">or any part of it is prohibited and may be unlawful. </td>                        
        </tr>
        <tr>
                <td width="686" height="8"><font face="Arial" size="1">If you have received this communication in error, kindly notify us by return e-mail and discard and/or delete the communication. </td>                        
        </tr>
        <tr>
                <td width="686" height="8"><font face="Arial" size="1">Thank you very much.</td>                                 
        </tr>
        <tr>
                <td width="686" height="8"><font face="Arial" size="1">It is possible for e-mails to be intercepted or affected by viruses. Whilst we maintain virus checks on our e-mails, we accept no liability for viruses </td>                        
        </tr>                                
        <tr>
                <td width="686" height="8"><font face="Arial" size="1">or other material which might be introduced with this message.</td>                                 
        </tr>
</table><br><div class=MsoNormal align=center style='text-align:center'><font size=3
color=black face="Times New Roman"><span style='font-size:12.0pt;color:windowtext'>
<hr size=2 width="100%" align=center tabindex=-1>
</span></font></div>
<p class=MsoNormal><b><font size=2 color=black face=Tahoma><span
style='font-size:10.0pt;font-family:Tahoma;color:windowtext;font-weight:bold'>Von:</span></font></b><font
size=2 color=black face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma;
color:windowtext'> Ben Lewis [mailto:asuomynona@gmail.com] <br>
<b><span style='font-weight:bold'>Gesendet:</span></b> Mittwoch, 9. März 2011
07:41<br>
<b><span style='font-weight:bold'>An:</span></b> kst@kde.org<br>
<b><span style='font-weight:bold'>Betreff:</span></b> [Kst] Re: Addition of
sample on a specific range</span></font><font color=black><span
style='color:windowtext'><o:p></o:p></span></font></p>
</div>
<p class=MsoNormal><font size=3 color=black face="Times New Roman"><span
style='font-size:12.0pt'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=3 color=black face="Times New Roman"><span
style='font-size:12.0pt'>Hi Mathieu,<br>
<br>
If you are sampling at regular intervals you could try using the
"Cumulative Sum" plugin found under Create > Filter Plugin >
Cumulative Sum.<br>
<br>
This will give you a running total of energy used.<br>
<br>
You can then use an equation found under Create > Equation to calcuate the
total cost.<br>
<br>
You will need to be consistent with your units, so if power is measured in
Watts and the cumulative sum variable, dx, is entered in seconds, then the unit
cost of electricity will need to be $/W-s.<br>
<br>
I hope this helps.<br>
<br>
Cheers, Ben<br>
<br>
<br>
On 8/03/2011 2:49 PM, <a href="mailto:mathieu660r@gmail.com">mathieu660r@gmail.com</a>
wrote: <o:p></o:p></span></font></p>
<p class=MsoNormal><font size=3 color=black face="Times New Roman"><span
style='font-size:12.0pt'>Hi,<br>
<br>
I'm new here and I find KST a really great tool for fast and efficient
plotting. I'm currently using some hardware to measure the real power of some
lights. I can plot the power easily and I can get the power value on the y axis
and the time on the x axis. My question is a little bit complex so I will try
to explain the best as I can if you have questions please ask. So I want to add
all the value of a time sample ( example : all the value during 60 minutes and
do it for each 60 minutes) and multiply the total value by another value to get
an approximation of the cost of electricity. <br>
<br>
Thanks,<br>
Mathieu R. <o:p></o:p></span></font></p>
<pre><fieldset class="mimeAttachmentHeader"></fieldset><font size=2
color=black face="Courier New"><span style='font-size:10.0pt'><o:p> </o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>_______________________________________________<o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>Kst mailing list<o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'><a
href="mailto:Kst@kde.org">Kst@kde.org</a><o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'><a
href="https://mail.kde.org/mailman/listinfo/kst">https://mail.kde.org/mailman/listinfo/kst</a><o:p></o:p></span></font></pre>
<p class=MsoNormal><font size=3 color=black face="Times New Roman"><span
style='font-size:12.0pt'><o:p> </o:p></span></font></p>
</div>
</div>
</body>
</html>