LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Run-Time Menu and Event Structure~~HELP~~

Hi, brothers,

I'm new user for LabVIEW. Use the version of LabVIEW is 8.6

 

One problem describe as below:

Can Run-Time Menu and Event Structure exist simultaneously?

Without Event Structure, Run-Time Menu works well, but Run-Time Menu works abnormally.after adding Event Structure,

How do I modify the problem?

Thank you for your help.

 

Attached is the program.

0 Kudos
Message 1 of 5
(3,030 Views)

"Can Run-Time Menu and Event Structure exist simultaneously?"

Yes there is no problem.

 

Can you back save-it in 8.5 ?

0 Kudos
Message 2 of 5
(3,018 Views)

Yes they can coexist, but not how you did it.

Every iteration of the while loop you wait for an event in the event structure, and you look if the user has selected anything from the menu.

 

To get this working you should add an event for <this VI>\Menu Selection (User):

 

Ton

 

PS you should add a stop button, the only way you can stop the VI is hitting the 'emergency stop' button, with hardware connected (like you have) this is not the adviced routine

Message Edited by TonP on 09-26-2008 07:34 AM
Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
0 Kudos
Message 3 of 5
(3,014 Views)

Thank you for your both reply.

 

Following Ton's method, it works well. Thanks.
In this project, it has no any I/O of hardware, only commucates with PC via Serial Port.
So, I don't add stop button to stop VI. end user can stop VI via "Exit item" of Run-time menu.

 

Another question:
What's the function of timeout for event structure? How to use it? How to set the time of timeout?

 

KC

0 Kudos
Message 4 of 5
(3,000 Views)

I have understood the mean of timeout for event structure.

Thanks.

0 Kudos
Message 5 of 5
(2,991 Views)