AnsweredAssumed Answered

How to Locate a Specific PointID in a PISDK.PointList Object

Question asked by pauljohnson on Oct 10, 2018
Latest reply on Oct 15, 2018 by gregor

Hi there, I'm new to writing interfaces using the PISDK (Note, due to corporate desktop model we do not have access to the PI AF SDK).  I have written a simple interface which retrieves all tags for a specific PointSource into a PointList object.  The interface reads data from a device specific CSV file which is then written to the appropriate tags in PI.  I am having difficulty dealing with underlying COM architecture of the PISDK, specifically locating the InstrumentTag for the tag I need within the PointList.  For want of a better solution, I currently iterate through the PointList comparing the InstrumentTag in the data against each InstrumentTag contained in the PointList.  I am sure there is a more efficient way of doing this, but I can't for the life of me find it within the documentation, or from looking at the methods available via the PointList object.  Assistance would be much appreciated.

 

Kind Regards

Paul.

Outcomes