AnsweredAssumed Answered Get the Min and Max of a Digital Tag

Question asked by Thomas1 on Jan 25, 2018
Latest reply on Jan 26, 2018 by Steve Boyko

I am writing some code to capture the min and max of pi tags in a Process Book Trend.  The idea is to then use the min and max values to set the trace scales.


These two calls work just fine for float32 type pi tags, but fail for digital tags.


myTagMin = pt.Data.Summary("*-15m", "*", PISDK.ArchiveSummaryTypeConstants.astMinimum, PISDK.CalculationBasisConstants.cbTimeWeighted)

myTagMax = pt.Data.Summary("*-15m", "*", PISDK.ArchiveSummaryTypeConstants.astMaximum, PISDK.CalculationBasisConstants.cbEventWeighted)


What is the syntax to capture the min and max of a digital tag?  Thanks.