03-17-2015 10:52 AM
Hi
As you see the attachment I have a "Numerical Control" (X) and a "Numerical Indicator" (Z) whose value is changing by a "Numerical Control" (Y).
When I run the code and change "X" the Event Produce a notification but when I change the value of the indicator "Z" using "Y", the Event Structure does not produce any notification.
Why is that and How should I be notified when the value of "Z" changed?
Best Regards
V.S
Solved! Go to Solution.
03-17-2015 10:55 AM
Hi VS,
an event is either fired by USER action (aka mouse clicks or key strokes) or by using user events.
Setting an indicator programmatically (by a wire ) will NOT produce an event. You can however fire an event using a "Value (signalling)" property node…
03-17-2015 11:32 AM
Hello V.,
attached something that would work.
Depending on the nature of your application, there must be a better way to do what you need.
Normally when I tend to use this property node I start questionning my design.
03-17-2015 11:34 AM
Hi Gerd W
when I use the "Value Signaling" it fires the event for every cycle of the while loop not only the first time I change the value.
Regards
03-17-2015 11:37 AM
03-17-2015 11:43 AM
@V.S wrote:
Hi Gerd W
when I use the "Value Signaling" it fires the event for every cycle of the while loop not only the first time I change the value.
Regards
Then why don't you just use a Y:Value Changed event?
Based on this code, you should not have the timeout. You should also make an event for the stop button being pressed. There is no need for this loop to keep running when there is no GUI interaction happening.
03-17-2015 11:52 AM
Dear crossrulz
This is a simple VI from a bigger VI so the "Y" Value is a representation of some calculated data in my original code and is not exactly a Numerical Control in my original code then I can not use Y:Value Changed event.
Regards
V.S