AnsweredAssumed Answered

PI SDK: Replicating DataLink's "PIAliasToTag" functionality

Question asked by barling on Oct 26, 2018
Latest reply on Oct 27, 2018 by Dan Fishman

(I'm using PI SDK, even though it's depreciated. I will not be able to use the AF SDK).

 

I am currently translating a VBA-based PI tool into C#, and I'm stuck at replicating DataLink's "PIAliasToTag" functionality. I can't find a similar function in the SDK manual, and the Excel tool is performing this action via Application.Run("PIAliasToTag").

 

Essentially, I need to know what tag(s) is/are associated with Alias "X" in unit/module "Y" between times "dateStart" and "dateFinish".

 

I've tried to approach the issue from a different conceptual angle (e.g., using PIModules["Y"].PIAliases), but my efforts have been fruitless as I can't really find any easy way to look at a particular alias for a particular time period.

 

What options exist for searching aliases?

 

Thanks!

Outcomes