LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do you prevent display glitches with multiple while loops.

I would like to use 2 while loops, 1 for displaying elapsed time and the other for executing a sequence of initialization steps. Every time the sequence transistions from one frame to the next, I get a glitch in the elapsed time display. How can this be avoided? Should I be going about this in a different way?
0 Kudos
Message 1 of 3
(2,498 Views)
I would drop the whole semaphore thing and hold the cluster in a functional global (also called a shift register database or LV2-style global, you can find info on the concept here). Add methods to update different parts of the cluster. Much easier code and the required protection of the cluster is there.
0 Kudos
Message 2 of 3
(2,498 Views)
With the functional global you also get rid of the value properties, not a good habit to use those (yes they have their use, but limited)...
0 Kudos
Message 3 of 3
(2,498 Views)