AnsweredAssumed Answered

PIPointList InterpolatedValues Issue with Paging Results Python

Question asked by S.Ely on Apr 26, 2017
Latest reply on Apr 28, 2017 by tramachandran

I am trying to use PIPointList.InterpolatedValues with PIPagingConfiguration, but I am getting the following error in my results:



"OSIsoft.AF.PI.PIException('[-10002] Unable to Activate Object')"


When I try to use the Interpolated Values function, I am unable to enumerate through the results. I can get InterpolatedValues working for each PIPoint, but when I try to use the PIPointList function I am running into errors. My code is below. If I try a for loop of the results my python kernel dies...


# Find PIPoints with filter 'LS*RMS Current'

tags = PIPoint.FindPIPoints(piServer, 'LS*RMS Current')

# Convert the list of tags into a PIPointList

tagList = PIPointList(tags)

# Load the 'descriptor' attribute for the point list

attrList = [PICommonPointAttributes.Descriptor]


# Get Interpolated Values

timerange = AFTimeRange('*-1h', '*')

span = AFTimeSpan.Parse('15m')

config = PIPagingConfiguration(PIPageType.TagCount, 100)

results = tagList.InterpolatedValues(timerange, span, "", False, config)