LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

MMI in a 'while' loop?

Hello all,

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?

Regards,
jm
0 Kudos
Message 1 of 2
(2,458 Views)
Hi

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).

Luca
Regards,
Luca
0 Kudos
Message 2 of 2
(2,458 Views)