02-14-2007 11:07 AM
02-14-2007 11:11 AM
Because both run in the User Interface thread AND the UI thread is single threaded.
Once one begins to execute, the other has to wait for the other to finish.
Ben
02-14-2007 11:39 AM
02-16-2007
10:36 AM
- last edited on
03-05-2026
03:25 PM
by
Content Cleaner
Spring:
As Ben mentionned, both operations are running in the UI thread and that is why it has to wait until you select the timestamp to continue updating the numeric indicator that is tied to the loop iteration terminal of the while loop. I have included a few documents about threads in LabVIEW:
LabVIEW Threads
Turning Off Multithreading
I hope this helps and let me know if I can help further.
Regards,
Rudi N.
02-16-2007 11:16 AM
This is just another reason not to overuse property nodes. There is no reason in the world to rewrite the same old property millions of times per second, especially since it is fed by a diagram constant that can never change. Once you set a property, it remains until you set the property to something else.
Property nodes execute in the UI thread. Notice that if you remove the property node and open the calender dialog, the loop keeps spinning.
You simply need to compose your code in such a way that the property node only executes if its input value has changed. There are many ways to do this. Property nodes are relatively expensive (partly because they force a switch to the UI thread) so this is a good idea in all cases.
UI loops such as in your example also deserve a small wait statement.