LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Values not always updating on front panel

I have written some simple code which is set to update saved values onto the front panel. Using the debugging probe I can see that the data sent to the indicators is correct - however the indicator on the front panel does not always update to that value - sometimes it does and sometimes it doesn't - and no, there is no race condition involved.
Message 1 of 9
(5,569 Views)
Which version of LabVIEW are you using? At least in my LV 5.0.1 all is correct. Have you put a small delay in the while loop to avoid LV get all your system resources and don't let the screen update (this happens under Windows)? Could you send an example (for me only LV 5.0 is adecuate).
0 Kudos
Message 2 of 9
(5,569 Views)
I'm using LabView6 - The Code w/ which I'm experiencing problems is in a Case Loop, I'll try a delay. Explain this Windows/ screen updating problem to me again?
0 Kudos
Message 3 of 9
(5,569 Views)
Hi Sarah,

Right-click on the indicator and make sure "Synchronous Display" is set. This will force the code to wait until the indicator is updated before continuing.

The default for indicators is generally NOT synchronous. This allows loops that update indicators to iterate faster than the screen can update.

I hope this helps,

Ben
Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 4 of 9
(5,569 Views)
A good suggestion - but unfortunately I have already tried this and saw no change.
0 Kudos
Message 5 of 9
(5,569 Views)
Hi

I had the same problem in LV 5.0 when trying to print the final values of a
program. The only way I found to "force" the front panel to update is to
quickly hide and re-show the panel using VI server. It looks bad but works.

Are therea ny better solutions available?

Shane

sarah schrieb in Nachricht
<506500000005000000AA280000-986697009000@quiq.com>...
>A good suggestion - but unfortunately I have already tried this and
>saw no change.
Using LV 6.1 and 8.2.1 on W2k (SP4) and WXP (SP2)
0 Kudos
Message 8 of 9
(5,569 Views)
THe only way I found to get it to work was to put a 'wait' in the loop. 15ms is the smallest time I can wait and still have the values update.
0 Kudos
Message 9 of 9
(5,569 Views)
On second thought, does it matter that I'm using local variables to write to a control. If I set synchronous display on the control is this passed on to the local vars?
0 Kudos
Message 6 of 9
(5,569 Views)
If you are using local variables, check for them, race conditions may arise.
0 Kudos
Message 7 of 9
(5,569 Views)