Hi,
I have a waveform chart with a history length of 28800 points visible and I take a sample with a frequency of 1 second and I plot it. (I acquire data with and acquisition card). Then, I would like the user can choose the number of hours (1 to 24 hours) to visualize in the waveform chart from a configuration window and also he can modify the frequency to take the sample (1 to 60 seconds). Then each time he modify these parameters, the number of houres (1 to 24) and the frequency to take samples (1 to 60 seconds), I set up the history length from them doing the following operation:
(60 seconds/frequency to take sample) * 60 minutes * number of hours = history length. (number of points taken during the hours you set up)
where:
(60 seconds/frequency to take sample) : is the number of samples took during a minute
(60 seconds/frequency to take sample) * 60 : is the number of samples took during an hour
(60 seconds/frequency to take sample) * 60 minutes * number of hours: is the number of samples taken during the number of hours you set up
So I only have the number of points in the history length necessary and not more.
Thanks,
ToNi.