With Labview, i want to launch a windows to request login and password from a file. I already done this as a vi, but if i want it to work, i must use a while loop waiting for user entry. This method take almost 100% CPU.
Is there a way to wait passively for user entry? As a button callback in labWindows CVI?
The "problem" is that LV executes the while loop as fast it can (100% CPU usage). The workaround is to place a "wait until next ms multiple" (Time & Dialog pallete) ito the while loop and set a value of about 100ms. This value is enough for user interaction. If you have LV 6.1, than you can use the "event structure" (no polling).