LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

calling VI's through menu

In the menu selection, i've placed one menu as extraction. if i click that extraction in the menu that should open the extraction vi. how can i do this in lab VIEW 7 express. 
Thanks and regards
jagan
0 Kudos
Message 1 of 34
(4,177 Views)

Hi 2716jag,

i´m not sure if it work with LV7 express, but here is an example for you. Hope it helps.

Mike

Message 2 of 34
(4,143 Views)

Alternately you can use the Event Structure. Add an event "Menu Selection (User)" if its an user created menu or "Menu Selection (App)" if its an application menu for source "<This VI>". You can then create a Case Structure with a empty case for default and another named same as the item tag for the menu for which you want to do something and place the code inside this case.

Remember to wire a time out value at the top left corner of the event structure and not to remove the Timeout event case. You can set time out value like 10 or 100 as you like.

Regards

0 Kudos
Message 3 of 34
(4,137 Views)

thanks mike , i got that through event structure.

-Jagan

0 Kudos
Message 4 of 34
(4,134 Views)

@ Deepu

Hi Deepu,

"Menüauswahl (Benutzer)" is the same as "Menu Selection (User)". Smiley Happy Sorry, i have to work with a german version.
Why do he need the timeout event??

Mike

Message 5 of 34
(4,132 Views)
Hi Mike,
Cheers man... sorry that I didn't notice clearly how you were processing the whole thing.
 
If the loop that is containing the event structure is totally working on an event based, then he can leave the timeout value un-wired. Some programmers may be using same loop for reading directly from command buttons as well as for event processing (mainly menu). So in this case if there is no timeout value specified, processing of each button read will be halted until a menu event or any other event that is added has occured. I think I was very clear of the need in the earlier post. For me, I am using it this way and it just came into my mind while typing the message... Smiley Wink
Usually I process menu event and reading of button press all in a single case and pass the appropriate case into a Q and use Q to complete the function.
 
Rgds
Deepu
0 Kudos
Message 6 of 34
(4,124 Views)

Im using things fully based on events, so timer based event is not needed for me now, i think so,

Thnks Guys

0 Kudos
Message 7 of 34
(4,108 Views)

I hav to run two VI for a few second and then to sleep (that s to free other process to run) , how to make it can u help me??

Thanks and regards

Jagan

0 Kudos
Message 8 of 34
(4,087 Views)

Hi Jagan,

what do you make in this two vi´s? If you only need to run it ones, maybe "Call by Reference Node" helps.

Mike

Message 9 of 34
(4,076 Views)
Two vi's are doing the same function.
 
now inside the vi, one vi is continously polling the interrupt staus from driver side through call library function node with the help of a while loop.
After getting the interrupt status it will reach another vi named "Read" through case structure. The Read.vi which will run one time after getting the interrupt status. its job is getting the data from driver buffer and putting it in lab view buffer (1Mb array) from that array im doing file writting within  Read.vi itself.
 
This is the process the two VI's are reapting and no delay i had given so that i cant able to access the front panel. i made a event structure and cant able to click the stop button to make process to stop through event structure.
 
so can u tell me where i can give the delay that i can able to access the front panel.
 
0 Kudos
Message 10 of 34
(4,062 Views)