YetAnotherForum
Welcome Guest Search | Active Topics | Log In | Register

Writing values with invalid status using PI-SDK Options · View
Pawel
#1 Posted : Friday, February 05, 2010 12:52:22 PM
Rank: Newbie
Groups: Member

Joined: 4/8/2009
Posts: 2
Location: Poland
Hello

When I read a value using PI-SDK there is PIValue.IsGood method that can be used to check if the value is valid.
However when I write a value using PIData.UpdateValue there doesn't seem to be a way of writing an invalid value (for float tag).
My application is written in C#. I've tried passing null,NaN or a PIValue object with null but either the value is not written at all or 0 is written.
Supposedly it's possible to do this using PI API.

Thanks,
Pawel
Sponsor  
 

OSIsoft vCampus is a subscription-based, online offering that consists of providing everything people need to develop applications on the PI System.
We invite you to take a "tour" of the OSIsoft Virtual Campus - also feel free to consult the FAQ  or contact OSIsoft vCampus for more details.
RJK Solutions
#2 Posted : Friday, February 05, 2010 1:47:36 PM
Rank: Administration

Groups: Administration

Joined: 6/20/2008
Posts: 612
Location: Cheshire, United Kingdom.
Hi Pawel,

In that scenario you need to send a Digital State as the value you wish to update e.g. "Bad".
You can just use the system states for most of the common states that you would expect to see in place of a good value.

Cheers,

Rhys.
Principal Consultant
Real-Time Data Management @ Wipro Technologies
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.