02-22-2021 12:21 AM
I Just want to Trigger " Indicator value Change Event" that corresponds output to be shared to Target RT VI through Network Shared Variable
How to achieve "Indicator Value Change Event " without unhandled events in UI event structure
02-22-2021 02:18 AM
Are you sure that there are unhandled events? For me it works.
Events appear only briefly in the topmost line of the unhandled events list and immediately disappear. They never pile up.
I don't see why it would not work. Unless writing the shared variable is unbearably slow.
02-22-2021 02:54 AM
Kindly check Video
1.Value Property does not trigger any event in UI
2.Value (Signal) Property triggering event but its unhandled event
02-22-2021 03:24 AM
Hi gowthameie,
@gowthameie wrote:
1.Value Property does not trigger any event in UI
2.Value (Signal) Property triggering event but its unhandled event
Please read the LabVIEW help on event structure, especially the Caveats section…
02-22-2021 03:59 AM
There is a small latency, more in the display of the Event Inspector Window than in the event management itself, I believe. But eventually all events are handled in a short time.
02-22-2021 04:23 AM
Check the following modified version of your vi, in which I grab the times (from the millisecond timer) of both event generation and management.
You will see that most of the times, they differ by only one ms. I removed your 10 ms wait because it's useless, however it doesn't change much.
Also:
- I set the Stop button as Latch when released, which is the best choice
- it's misleading to call indicator what is actually a Control (although cosmetically similar to an indicator)
02-22-2021 10:56 AM - edited 02-22-2021 10:58 AM
@gowthameie wrote:
I Just want to Trigger " Indicator value Change Event" that corresponds output to be shared to Target RT VI through Network Shared Variable
If this is all you "just" want do do, I don't understand your extremely convoluted approach.
02-23-2021 06:10 AM
Let me explain my actual application
(i.e) if Oil Level is Low , software should give notification to operator through Red lamp ON.
How to achieve this?
Give a proper architecture.
02-23-2021 07:11 AM
@gowthameie wrote:(i.e) if Oil Level is Low , software should give notification to operator through Red lamp ON.
Use Altenbach's setup. You just have the look monitor the level, do the comparison, and wire the output to the indicator. No need for an Event Structure here.
02-24-2021 11:17 AM
@gowthameie wrote:
Let me explain my actual application
- I want to monitor Digital Inputs (Low oil Level, Any fault status) (True/False) for every 100 msec. (Similar to second loop operation what i simulated)
- Based on the Value of Digital Input status, Digital Output should be activated from my UI Event Structure (Similar to First loop operation).
(i.e) if Oil Level is Low , software should give notification to operator through Red lamp ON.
How to achieve this?
Give a proper architecture.
You are spinning the loop anyway. As I said, events are primarily for user interactions and in your original code, the user could even click the LED and trigger an out of band event that could potentially interfere with proper operation or lead to dangerous conditions (i.e. low oil without indication!). Also note that a low oil level is probably a much rarer and more random occurrence. That shared variable update should be inside a case structure that only activates when the boolean actually changes (Note that I am avoiding the term "event" to keep you from falsely gravitating to the event structure again!). You can use a feedback node to compare current and previous.