Getting all previous values from a DCI

Started by mitchellj, October 18, 2013, 04:13:51 PM

Previous topic - Next topic

mitchellj

So like a few others I'm trying to get the 95th percentile for a interface, the way I'm trying to solve this would be to make a new DCI which takes all the values of a DCI, bubblesorts them and lops off the top 5% and then takes the next item.

The roadblock i'm running into :- is there a function to get a array of all previous DCI values?

If there isn't I don't suppose I can put in a feature request could I? GetDCIValues(nodeID, startTime, endTime) which just accepts a node id, a unix timestamp start time and a unix timestamp end time and all it does is spit out an array of all the DCI Values between the two values?

Thanks!
mitch

Victor Kirhenshtein

Hi!

Yes, it is a feature request. It is not hard to implement, I'll make it for 1.2.10 release.

Best regards,
Victor

mitchellj

Thanks!

It would be much appreciated!

mitch