LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to manipulate with menus and events

The easiest way to handle this is with the producer-consumer architecture. Mike showed you an implementation of this. The premise is that the event handler is the producer, and the other loop handles the events. You do not want the event case to get bogged down in handling the events. You can use the Application->Command Line Arguments property to get the list of arguments and add these elements to the queue, as if they had been menu selections. The attached example shows a way of doing this. I don't have 7.0 so I back-saved from 7.1 to 7.0. I included the build file for the app. It's a standard build app with one addition: In the Application Settings you want to the check the box "Pass all command line arguments to application".

Aside: Mike, your examples are much appreciated, but seeing as most folks on this board speak English, it's sometimes difficult to know what your code is actually doing because the text is in German. In the example you provided, for instance, what's the event case label? Someone who is not familiar with it would have no way of knowing. Smiley Wink

Message 11 of 12
(504 Views)

Hi smercurio_fc

 

Thank you very much; your code is most appreciated.

The functionality in your code is just what I was looking for so I managed to code your example into my measurement tool and now the application can be started manually and the user can select what ever from the menu and continue or the user can make a batch job and let the existents of a user file for configuration start the application automatically.

 

Thanks very much.

Best Regards

Peter

0 Kudos
Message 12 of 12
(475 Views)