LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Best Method To Use a RunTime Menu

Hi
I´m using a menu in my LabView Apllication, and I saw today that it takes considerable ressources. I enclose a vi in order to explain better what I mean. with my menu activated, my program loop runs about 5 times per sec, and about 170 without. Do you have better methods to use a RunTime Menu ?
Thanks in advance for your help
Nicolas Minary
0 Kudos
Message 1 of 3
(2,790 Views)
Sorry, I forgot the vi...
0 Kudos
Message 2 of 3
(2,790 Views)
Your VI runs in an all out loop. Use a function called wait(ms) in the loop. It is on the funtions >> time and dialog palette. I figure ms waits of 200 or 1/5 of a second is enough to make the front panel respond to the user smoothly.

If you have LabVIEW 6.1 or 7 you can use the event structure to handle your menu button clicks. This is the best way to free up computing resources. The LabVIEW shipping examples certaily have event examples but I think there is also a menu example as well.
0 Kudos
Message 3 of 3
(2,790 Views)