hello to everyone!!! I face a problem with getting timestamp value from point of type typestamp
My code written in C#. I put here logical part of project:
Code:
Array arr = _mdbEvents.TakeAll();
foreach (PIEventObject piEventObj in arr)
{
PointValue pv = (PointValue)piEventObj.EventData;
if (pv.PIValue.Value.GetType().IsCOMObject)
{
if (pv.PIPoint.PointType == PointTypeConstants.pttypTimestamp)
{
//TODO pttypTimeStamp type not supported yet!
}
else
{
DigitalState digitalState = (DigitalState)pv.PIValue.Value;
_pointValue = digitalState.Name;
}
}
else
{
_pointValue = pv.PIValue.Value;
}
}
In my code i can treat with all points value, except of timestamp type. I just can not get the value!!!!
If point is DigitalState, is OK, but if point of type timestamp and it not System digital set i have a problem!!!
Maybe someone could show me some way, please, to solve the problem.
I will very happy, if some one can help me.
Thanks!