<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 &quot;sliding window&quot;,
or &quot;moving sum&quot;, 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 &quot;difficult&quot;
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>&nbsp;</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"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</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 &quot;Sum&quot; automatic scalar, and generate another
scalar from it if you need a scale factor (Create-&gt;Scalar-&gt;Generate and
type your equation in the &quot;Value&quot; field of the &quot;Generate&quot;
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"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</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 &quot;page-wise&quot;. 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>&nbsp;</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>&nbsp;</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>&nbsp;</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&nbsp;DEUTSCHLAND&nbsp;GmbH</font></b></td>
        </tr>
        <tr>
                <td width="468" height="8"><b><font face="Arial" size="1">Sitz&nbsp;der&nbsp;Gesellschaft&nbsp;/&nbsp;Registered&nbsp;Office:&nbsp;Donauw&ouml;rth</font></b></td>
        </tr>        
        <tr>
                <td width="468" height="8"><b><font face="Arial" size="1">Registergericht&nbsp;/&nbsp;Registration&nbsp;Court:&nbsp;Amtsgericht&nbsp;Augsburg&nbsp;HRB&nbsp;16508</font></b></td>
        </tr>
        <tr>
                <td width="468" height="8"><b><font face="Arial" size="1">Vorsitzender&nbsp;des&nbsp;Aufsichtsrates&nbsp;/&nbsp;Chairman&nbsp;of&nbsp;the&nbsp;Supervisory&nbsp;Board:&nbsp;Dr.&nbsp;Lutz&nbsp;Bertling</font></b></td>
        </tr>
        <tr>
                <td width="468" height="8"><b><font face="Arial" size="1">Gesch&auml;ftsf&uuml;hrung&nbsp;/&nbsp;Board&nbsp;of&nbsp;Management:</font></b></td>
        </tr>
        <tr>
                <td width="468" height="8"><b><font face="Arial" size="1">Dr.&nbsp;Wolfgang&nbsp;Schoder,&nbsp;Vorsitzender&nbsp;/&nbsp;CEO;&nbsp;Friedrich-Wilhelm&nbsp;Hormel;&nbsp;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">&nbsp;</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">&nbsp;</td>                        
        </tr>
        <tr>
                <td width="686" height="8"><font face="Arial" size="1">CONFIDENTIALITY&nbsp;NOTICE</td>                
         </tr>        
        <tr>
                 <td width="686" height="8"><font face="Arial" size="1">&nbsp;</td>                        
        </tr>                
        <tr>
                <td width="686" height="8"><font face="Arial" size="1">This&nbsp;communication&nbsp;and&nbsp;the&nbsp;information&nbsp;it&nbsp;contains&nbsp;is&nbsp;intended&nbsp;for&nbsp;the&nbsp;addressee&nbsp;(&nbsp;s&nbsp;)&nbsp;named&nbsp;above&nbsp;and&nbsp;for&nbsp;no&nbsp;other&nbsp;persons&nbsp;or&nbsp;organizations.&nbsp;</td>                                 
        </tr>
        <tr>
                 <td width="686" height="8"><font face="Arial" size="1">It&nbsp;is&nbsp;confidential&nbsp;and&nbsp;may&nbsp;be&nbsp;legally&nbsp;privileged&nbsp;and&nbsp;protected&nbsp;by&nbsp;law.&nbsp;The&nbsp;unauthorized&nbsp;use,&nbsp;copying&nbsp;or&nbsp;disclosure&nbsp;of&nbsp;this&nbsp;communication&nbsp;</td>                        
        </tr>
        <tr>
                 <td width="686" height="8"><font face="Arial" size="1">or&nbsp;any&nbsp;part&nbsp;of&nbsp;it&nbsp;is&nbsp;prohibited&nbsp;and&nbsp;may&nbsp;be&nbsp;unlawful.&nbsp;</td>                        
        </tr>
        <tr>
                 <td width="686" height="8"><font face="Arial" size="1">If&nbsp;you&nbsp;have&nbsp;received&nbsp;this&nbsp;communication&nbsp;in&nbsp;error,&nbsp;kindly&nbsp;notify&nbsp;us&nbsp;by&nbsp;return&nbsp;e-mail&nbsp;and&nbsp;discard&nbsp;and/or&nbsp;delete&nbsp;the&nbsp;communication.&nbsp;</td>                        
        </tr>
        <tr>
                <td width="686" height="8"><font face="Arial" size="1">Thank&nbsp;you&nbsp;very&nbsp;much.</td>                                 
        </tr>
        <tr>
                 <td width="686" height="8"><font face="Arial" size="1">It&nbsp;is&nbsp;possible&nbsp;for&nbsp;e-mails&nbsp;to&nbsp;be&nbsp;intercepted&nbsp;or&nbsp;affected&nbsp;by&nbsp;viruses.&nbsp;Whilst&nbsp;we&nbsp;maintain&nbsp;virus&nbsp;checks&nbsp;on&nbsp;our&nbsp;e-mails,&nbsp;we&nbsp;accept&nbsp;no&nbsp;liability&nbsp;for&nbsp;viruses&nbsp;</td>                        
        </tr>                                
        <tr>
                <td width="686" height="8"><font face="Arial" size="1">or&nbsp;other&nbsp;material&nbsp;which&nbsp;might&nbsp;be&nbsp;introduced&nbsp;with&nbsp;this&nbsp;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>&nbsp;</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
&quot;Cumulative Sum&quot; plugin found under Create &gt; Filter Plugin &gt;
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 &gt; 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>&nbsp;</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>&nbsp;</o:p></span></font></p>

</div>

</div>

</body>

</html>