khuang

PointValue for Digital Tag

Discussion created by khuang on Dec 29, 2010
Latest reply on Dec 29, 2010 by cescamilla

_PIEventObject = cdtEvents.Take()
Dim _pv As PISDK.PointValue
' Assign the EventData part of the Event
' to a temporary PointValue object.
_pv = _PIEventObject.EventData
Debug.WriteLine("TagName is " & _pv.PIPoint.Name.ToString() _
& " and DT is " & _pv.PIValue.TimeStamp.LocalDate.ToString() _
& " The value is " & _pv.PIValue.Value.ToString())
The output is
"TagName is sys:ams_test.al and DT is 12/29/2010 3:53:11 PM The Value is System.__ComObject"
Question: How I convert this PIValue.Value object ?
The PIPoint is PI Alarm Point type.

Outcomes