MTN Posted January 29, 2018 Share Posted January 29, 2018 Does anyone have a script to average all the values of channel for each day at midnight? Link to comment Share on other sites More sharing options...
AzeoTech Posted February 1, 2018 Share Posted February 1, 2018 Sure. If you want the average of a channel for all values since midnight it would be: mean(myChannel[0h, 0h+86400-0.001]) 0h returns midnight today. 0h+86400-001 is simply midnight tonight minus 0.001 seconds, which will pick up the entire day no matter what time it currently is. To get yesterday's, just go the other way: mean(myChannel[0h-0.001, 0h-86400]) Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.