キャンセル
次の結果を表示 
次の代わりに検索 
もしかして: 

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 件の賞賛
メッセージ1/3
2,875件の閲覧回数
Sorry, I forgot the vi...
0 件の賞賛
メッセージ2/3
2,875件の閲覧回数
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 件の賞賛
メッセージ3/3
2,875件の閲覧回数