LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

not getting event for Indicator

Hi..
I am running 2 while loops. One handles the events. Other update the data. I created one event with value change for numeric indicator. On updation of the indicator it doesnt generate the event.. I need to generate the event on value change. is this not possible?
Thank you,
Ranjith
0 Kudos
Message 1 of 9
(3,437 Views)

Hi Ranjith,

use the value(signaling) property of your indicator and see also this link: 
http://forums.ni.com/ni/board/message?board.id=170&message.id=339438#M339438

Mike

0 Kudos
Message 2 of 9
(3,430 Views)
Value change events are not generated when the value change is done programmatically. Events occur when a user changes a value on the front panel. If you want to fire an event when you programmatically change something, then you do a write to the Value(Signaling) property node of the terminal/control.
0 Kudos
Message 3 of 9
(3,429 Views)

Yes you can.  You can't write the value to the terminal directly or a local variable.  You will have to create a property node of the indicator and use the valu(signalling) property.

3 responses in 2 minutes!



Message Edited by Ravens Fan on 07-10-2008 10:40 AM
0 Kudos
Message 4 of 9
(3,426 Views)
Would have been 4, but I decided to check to see if anyone responded before I posted my response with an example. Smiley Very Happy

Too bad, it was a nice example. Smiley Very Happy
0 Kudos
Message 5 of 9
(3,421 Views)
hmmn... Pleae see the attached vi.. Event generates on every update. But i need it only when value changes. do i have to write logic manually?
Thank you,
Ranjith
0 Kudos
Message 6 of 9
(3,411 Views)
The "Value(Signaling)" property will trigger the "Value Change" event regardless of what value you write (even if it's the same). Thus, if you only want to trigger it when there's an actual value change, then you need to program this yourself.

A shift register comes to mind. I'll leave that to you as a learning exercise. Smiley Wink
0 Kudos
Message 7 of 9
(3,397 Views)
That VI qualifies for Rube Goldberg Code. if you want Numeric 3 to update when there is a change in Numeric 2, just create an Value Change event for Numeric 2 and wire Numeric 2 to Numeric 3 inside the event. No need at all for the second loop. Also, put your stop button in value change event.

Message Edited by Dennis Knutson on 07-10-2008 09:10 AM
0 Kudos
Message 8 of 9
(3,393 Views)
Just for an example i introduced Numeric2. In practical i get that data from array index.
0 Kudos
Message 9 of 9
(3,387 Views)