LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem updating indicators

Hi,
I have a numerical indicator whose value is calculated using another control. I set up an event so that when a change of value occurs on the control, the indicator's value is recomputed. This works fine.
However, I then added a second event to the case, for a second control which also affects the indicator's value. When a change of state occurs in this second control, the indicator's value does not change! This is even though a breakpoint is hit when the change of state occurs.
Does anybody know if there is a complication with the ui/updating etc which I'm not aware of yet? I'm a beginner to LabView.

Thanks,

Martin
0 Kudos
Message 1 of 4
(2,706 Views)
Why not handle both events in the same "case". This way you can take BOTH values which affect the indicator, do a single calculation to generate the new indicator value and then update it.

Hope this helps

Shane.

PS You can add multiple events to a single handler case by right-clicking on the case header and choosing "Edit events handled by this case". There you can add (large + in the upper window) extra events to the list of events which will fire that single case.

Message Edited by shoneill on 05-24-2005 12:58 PM

Using LV 6.1 and 8.2.1 on W2k (SP4) and WXP (SP2)
0 Kudos
Message 2 of 4
(2,702 Views)
I made a small test using two numeric controls and an indicator. I made an event structure with two cases, one for each control. I tried:

Writing through the terminal for each case. Writing through the terminal in one case and a local variable or the property node value in the other. All test updated the indicator.

I used LV 7.1.1 for the test. If you have a different version which one do you use?
Waldemar

Using 7.1.1, 8.5.1, 8.6.1, 2009 on XP and RT
Don't forget to give Kudos to good answers and/or questions
0 Kudos
Message 3 of 4
(2,699 Views)
Thanks everyone for your help.
I'm afraid I'd made a schoolboy error and had put my controls outside of the while loop. I guess it's the kind of mistake beginners make...
Thanks again,
Martin
0 Kudos
Message 4 of 4
(2,685 Views)