Real-Time Measurement and Control

cancel
Showing results for 
Search instead for 
Did you mean: 

To generate the event on value change of the boolean indicator

We need to store the faults sensed by the Digital Input Module in a file. We need to generate the event on fault occurrence or value change of the indicator(Boolean) so that we can save the fault status. We tried using the Value signalling property of the indicator but it generates the event even if there is no change in the value and we need to generate the event only during the value change of the Boolean indicator.

 

Thanks

0 Kudos
Message 1 of 2
(5,468 Views)

Very common issue.  You have a few options. 

 

1. You could use a feedback node to hold the previous value, if the values are different then you use the Value (Signaling) property.  Otherwise you don't even write.

 

2. The other way to handle this is in the event structure where you compare the new and old values to see if it really did change and react accordingly.

 

I recommend the first option.



There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 2 of 2
(5,450 Views)