Hi,
I would like to know what i am doing wrong in the following:
I have a mainscan of 1sec.
I have a subscan of 250 ms.
I have a 1 minute table where this data is stored.
Within the subscan i have the voltdiff windspeed.
In the subscan i have a running average of 4 samples (4×250ms) windspeed.
So far, so good.
In the minute table i have a max windspeed and a max running average windspeed both from the subscan data.
Now comes to strange thing:
Sometimes the max running average windspeed is higher then the max windspeed....
I dont think that is logical.
I noticed the update rate of the one second data is very wonky, sometimes updating twice a second...
Ah i think i made an error...
I used: subscan(250,msec,4)
...i think i have to use: subscan(0,msec, 4)
Am i right?
Update:
I tried, no difference.
With a subscan(250,msec,4), how to have a running average of 3 seconds?
Avgrun(WS_KPH_AVG,1,WS_KPH,12)
Or
Avgrun(WS_KPH_AVG,1,WS_KPH,3)