How to compare PIValues Objects.

Discussion created by cguimaraes Employee on Feb 8, 2012
Latest reply on Feb 15, 2012 by MvanderVeeken

Hi Everyone,


I'm trying to compare two tags at diferent PI Systems to see if they have the same events, for that I'm using VS2008 at a VB project where at some point I load the values at the following manner:

        Dim _point1 As PISDK.PIPoint = ServPickList1.SelectedServer.PIPoints(tagComboBox1.SelectedItem.ToString())
        Dim _point2 As PISDK.PIPoint = ServPickList2.SelectedServer.PIPoints(tagComboBox1.SelectedItem.ToString())

        Dim _archiveValues_origem As PISDK.PIValues = _point1.Data.RecordedValues(DT1.Value, DT2.Value, BoundaryTypeConstants.btInside, "", PISDK.FilteredViewConstants.fvShowFilteredState, Nothing)
        Dim _archiveValues_destino As PISDK.PIValues = _point2.Data.RecordedValues(DT1.Value, DT2.Value, PISDK.BoundaryTypeConstants.btAuto, "", PISDK.FilteredViewConstants.fvShowFilteredState, Nothing)

 The point is, what is the most eficient way to compare the Objects _archiveValues_origem and _archiveValues_destino to see if they have the same events?


Thanks for the help,




Carlos Guimarães