[Kst] Re: Addition of sample on a specific range
mathieu660r at gmail.com
mathieu660r at gmail.com
Thu Mar 10 17:29:08 CET 2011
I would want to thanks everyone who tried to solve my problem. The method
proposed by mister Netterfield is exactly what I was searching for. I will
set a delay on my hardware so the sample will be every second, this way I
will be able to use you method. Because I don't have acces to the hardware
for the moment I can't test you solution. But, I just want to be sure of
something. If I input the start and end of the sample will this vector will
update itself and sample it for each hour ? I know you talked about that in
your email but will this iterate automatically ? I also wanna know if it's
possible for KST to parse data on a COM port and flush the value every day?
On Mar 9, 2011 7:09pm, Barth Netterfield <netterfield at astro.utoronto.ca>
> Are the data evenly sampled?
> If so: (this is for kst2. kst1.x is similar).
> When you read in the data (eg, data wizard page 3, or in the vector
> dialog), you will see in the "Data Range" widget an option
> "[ ] Read 1 sample per ________ frames [ ] Boxcar filter first"
> If you select both of these, and set the number of frames to the
> number of samples in an hour, then the data vector you read will be
> sampled once per hour, and will contain the average over that period.
> eg, if you sample the data once per second:
> [ x ] Read 1 sample per _3600_ frames [ x ] Boxcar filter first
> The resulting vector will contain the average for each hour, sampled
> once per hour.
> Then use an equation to multiply by the cost per kWhr to give the cost
> per hour.
> If you want the integrated cost, you can use the Cumulative Sum filter
> (in the plot->rmb->Filter->[Curvename] pulls up the filter dialog.
> Then select "Cumulative sum". Set the value of your dX, and perhaps
> chose to place the curve in a new plot).
> If the data are not evenly sampled, it is going to be hard to deal with
> in kst.
> On Mon, Mar 7, 2011 at 10:49 PM, mathieu660r at gmail.com> wrote:
> > Hi,
> > 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
> > the y axis and the time on the x axis. My question is a little bit
> > so I will try to explain the best as I can if you have questions please
> > So I want to add all the value of a time sample ( example : all the
> > 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
> > Thanks,
> > Mathieu R.
> > _______________________________________________
> > Kst mailing list
> > Kst at kde.org
> > https://mail.kde.org/mailman/listinfo/kst
> C. Barth Netterfield
> University of Toronto
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Kst