I'm fairly new to intract with PI.
I'm using PI SDK, I can insert a value to a specific Tag, but I have no clue how to add an annotation to the value.
Here is the code I'm using:
Sub InserePoint(ByVal TagName As String, ByVal value As Integer, ByVal dateApplique As DateTime) Dim mySDK As PISDK.PISDK Dim dt As New PITimeFormat Dim pt As PIPoint Dim MYPIServer As PISDK.Server 'Create an instance of the SDK If mySDK Is Nothing Then mySDK = New PISDK.PISDK 'Get the default server MYPIServer = mySDK.Servers.DefaultServer 'Get an instance on the PI Point pt = MYPIServer.PIPoints(TagName) 'Date applied dt.InputString = dateApplique 'Insert value 'This is where I'd like to add an annotation, say "Imported from such and such" pt.Data.UpdateValue(3, dt, DataMergeConstants.dmReplaceDuplicates) End Sub
What should I be doing to add an annotation to this value that I'm entering?