Setting _online_bad attribute for a datapoint

Discussion about recent product features & solutions!
Search

Post Reply
3 posts • Page 1 of 1
rajkumar.krishnan
Posts: 20
Joined: Fri Mar 07, 2014 2:46 pm

Setting _online_bad attribute for a datapoint

Post by rajkumar.krishnan »

Dear All,

I need to set a value in the archive with _online_bad attribute set. I am trying to set the attribute but it is not set in the archive.

dpSet("System1:A_1.value.MW1:_original.._value", 0,
"System1:A_1.value.MW1:_original.._exp_default", true);


If anything needs to be done apart from this please let me know.

Thanks in advance.

Regards,
Raj

User avatar
leoknipp
Posts: 2926
Joined: Tue Aug 24, 2010 7:28 pm

Re: Setting _online_bad attribute for a datapoint

Post by leoknipp »

Hello,

in your script you are setting the _attribute _exp_default which is the information that the _default-value shall be used. To set a original-value invalid you have to use the attribute _exp_inv.

Best Regards
Leopold Knipp
Senior Support Specialist

rajkumar.krishnan
Posts: 20
Joined: Fri Mar 07, 2014 2:46 pm

Re: Setting _online_bad attribute for a datapoint

Post by rajkumar.krishnan »

Thany you it worked...

Post Reply
3 posts • Page 1 of 1