IJourneaux

InterpolatedValues2 - return a calculation

Discussion created by IJourneaux on Aug 14, 2019
Latest reply on Aug 15, 2019 by Dan Fishman

I need to calculate a ratio. Rather than returning the 2 arrays and calcualting the ration, I would like to specify the calculation in the call to InterpolatedValues2. Perhaps something like

 

 Set ppoint = server.PIPoints.Item(tag1 / tag2)

    Set pdata = ppoint.Data

    Set ipdata2 = pdata

    Set pvalues = ipdata2.InterpolatedValues2(StartDate, EndDate, Period)

 

If something like this is possible what is the correct syntax for specifying the tags and the calculation? Not married to InterpolatedValues2. That is just what I am using right now.

Thank you

Outcomes