Support Forums
Statistic question

I am looking for the programming method to count and average readings during a data collection period. Example: Data Log Survey Duration 1 Hr. Cumulative average of temp readings for each channel averaged every 20 seconds.

Then plotted on a graph. If temp readings are both hi and low, then the cumulative avg. line for the graph would be centered horizontally in the graph.

Don't know if this can be overlaid? (possibly with Histogram, Pg. 65 of DT80 users manual). Is there another method to accomplish this? Results: presented using Mimic or external graphing source Final log survey is completed and final chart is plotted, with final sum cumulative plot.

Dean Phillips

I am looking for the programming method to count and average readings during a data collection period. Example: Data Log Survey Duration 1 Hr. Cumulative average of temp readings for each channel averaged every 20 seconds. Then plotted on a graph. If temp readings are both hi and low, then the cumulative avg. line for the graph would be centered horizontally in the graph. Don't know if this can be overlaid? (possibly with Histogram, Pg. 65 of DT80 users manual). Is there another method to accomplish this? Results: presented using Mimic or external graphing source Final log survey is completed and final chart is plotted, with final sum cumulative plot. Dean Phillips

Good morning Dean,

The dataTaker has built in statistical functions which you can use. There are two parts to using the statistical data:

  1. The speed at which the data is sampled which is set by the S (Statistical) schedule
  2. The speed at which the data is reported. This is the speed of the schedule.

For example:

BEGIN
RS20S ' Set the statistical sampling at 20 seconds
RA1H
1V(AV)(MX)(MN) 'Return the average, maximum and minimum of the last hour
END

The accumulative average can be achieved by keeping a running sum of the hourly average 1V(AV,+=1CV) then adding 1CV to the channel list.
You will need another schedule to reset the sum of the average as required.

I'm not sure what your requirement is for the graphing, could you please explain what you want in more detail?

Cheers,
Roger

Good morning Dean, The dataTaker has built in statistical functions which you can use. There are two parts to using the statistical data: 1. The speed at which the data is sampled which is set by the S (Statistical) schedule 2. The speed at which the data is reported. This is the speed of the schedule. For example: ```` BEGIN RS20S ' Set the statistical sampling at 20 seconds RA1H 1V(AV)(MX)(MN) 'Return the average, maximum and minimum of the last hour END ```` The accumulative average can be achieved by keeping a running sum of the hourly average 1V(AV,+=1CV) then adding 1CV to the channel list. You will need another schedule to reset the sum of the average as required. I'm not sure what your requirement is for the graphing, could you please explain what you want in more detail? Cheers, Roger

Thanks Roger,

The record frequency is 20 milliseconds. But the frequency of average would be about 1 second. The avg (polling) frequency of 1 second, would then be plotted on a graph. Your's or our's. We are planning a flash plugin- for the dataTaker, to post our own statistical data. Live. So if you can plot a (flat avg. line) across a graph horizontally, that is what I am attempting to accomplish.

So, The purpose is to see an average line plotted horizontally, for data averaging and sampling. The up to date, or running average is to see the the variance against the present reading. So the averaging calculations taking place will be throughout the data collection process.

Graph would be temp 1, temp 2, the avg of temp 1 and avg of temp 2.

Best regards,
Dean

Thanks Roger, The record frequency is 20 milliseconds. But the frequency of average would be about 1 second. The avg (polling) frequency of 1 second, would then be plotted on a graph. Your's or our's. We are planning a flash plugin- for the dataTaker, to post our own statistical data. Live. So if you can plot a (flat avg. line) across a graph horizontally, that is what I am attempting to accomplish. So, The purpose is to see an average line plotted horizontally, for data averaging and sampling. The up to date, or running average is to see the the variance against the present reading. So the averaging calculations taking place will be throughout the data collection process. Graph would be temp 1, temp 2, the avg of temp 1 and avg of temp 2. Best regards, Dean
26
2
2
live preview
enter atleast 10 characters
WARNING: You mentioned %MENTIONS%, but they cannot see this message and will not be notified
Saving...
Saved
With selected deselect posts show selected posts
All posts under this topic will be deleted ?
Pending draft ... Click to resume editing
Discard draft