LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Edit Menu

hi ...

after yer great help (serial comm) i wasn't able to create an menu for
my *.vi
i can edit this menu ... but how i am able to call a
procedure/*.vi/*.llb?
i wanna make a menu where some funktions can be called, to prevent a
front panel full of many options. but i'm not able to say what should be
done
when i choose one option from the menu. i tried to understand the
"normal"
menu ... things like "new" call a funktion "APP_NEW" ... how is it
possible
to manage that a special *.vi is called? or how does that work in
general?


thanks in advance.

cRayFiSh
0 Kudos
Message 1 of 2
(2,617 Views)
> after yer great help (serial comm) i wasn't able to create an menu for
> my *.vi
> i can edit this menu ... but how i am able to call a
> procedure/*.vi/*.llb?
> i wanna make a menu where some funktions can be called, to prevent a
> front panel full of many options. but i'm not able to say what should be
> done
> when i choose one option from the menu. i tried to understand the
> "normal"
> menu ... things like "new" call a funktion "APP_NEW" ... how is it
> possible
> to manage that a special *.vi is called? or how does that work in
> general?
>

There are a few plug-in menus like project and help that work
that way. You place a VI into the folder with the name of
project or help within the LV directory, and the menu item
is added automatically. When selected, the
VI will be
opened; so if set to Run when Opened, it works pretty
well.

The second, and more general technique is what you are
using with the menu editor. Nowhere does the manual say
that a VI is called for each item. Instead, there are
functions for the diagram to read the event type and
switch out on it. The code for the menu item can be
inline in the switch or in a subVI called from the
switch.

Greg McKaskle
0 Kudos
Message 2 of 2
(2,617 Views)