A Mean Question :)


Marcus_tribscan

Recommended Posts

I've created a knob with which you an control the running average (at least I hope so...) of some test channels. This part of the the code I'm currently using in a while-sequence which continuously fills up one of my test channels:

AddValue(insertTime((mean(-Horizontal_force[0,n_average])+loadCellBTare),theTime,0))

and n_average is the parameter controlled by the knob. My question is, and it seems to be working fine, but is this the correct way to do it? My knob with the n_average parameter goes from 0 to 10 in steps of one so setting the knob to zero should equal no averaging, setting it to 1 should equal adding the mean of the last 2 values in the Horizontal_force channel to the test channel and so on...

Thanks,

Marcus

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.