LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Timeout option in Get Menu Selection

Without a timeout input does Get Menu Selection just sit there until a menu item is selected? What is the difference in resource usage between one call to Get Menu Selection with no timeout and a while loop containing a call to Get Menu Selection with an input timeout value?
0 Kudos
Message 1 of 8
(3,192 Views)
> Without a timeout input does Get Menu Selection just sit there until a
> menu item is selected? What is the difference in resource usage
> between one call to Get Menu Selection with no timeout and a while
> loop containing a call to Get Menu Selection with an input timeout
> value?
>

Lots of nodes in LV know how to just sit there patiently waiting for the
input you asked for. All of these are based on the occurrence or
something similar either internally or on their diagram.

The difference is that no timeout means it will not return until a menu
item is selected, and will consume no CPU. By giving a timeout, it will
return when a menu item is selected or when x ms have passed. Thus you
can control how often the loop it is placed in runs. With any
timeout
but zero, you are talking about running the loop very slowly and
consuming very little CPU. With zero wired up, the loop may run
millions of times per second and will use all the CPU it can get. That
is what the diagram requested.

Greg McKaskle
0 Kudos
Message 2 of 8
(3,192 Views)

Hi Greg

Hey i need to select  multiple menu items in the file menu. but now after closing one menu item only im able to open the other,for example even i select the second menu item it will be opening after closing the first menu item i have opened.

Thanks and Regards

Jagan 

0 Kudos
Message 3 of 8
(2,960 Views)
Hi Jagan,

Can you please provide a more lucid explanation of your question? Are you referring to the File Menu is LabVIEW? Or is the question related to this discussion forum?
Warm regards,
Karunya R
National Instruments
Applications Engineer
0 Kudos
Message 4 of 8
(2,937 Views)

Hi Karunya,

Not related to that discussion, Its related to my application.. I cant select two menus simulataneously. if i select one menu item a vi will open, after closing that vi only, im able to open another vi by selecting another  menu item.

even i able to select menu item, related vi is not opening till the first vi get closed.

Thanks and Regards

Jagan

0 Kudos
Message 5 of 8
(2,924 Views)
Are you referring to the File menu in LabVIEW? What version of LabVIEW are you using? If it is not the file menu, have you created this menu?
Warm regards,
Karunya R
National Instruments
Applications Engineer
0 Kudos
Message 6 of 8
(2,907 Views)

Karunya,

I've created the menu using "Run time menu" . yes file menu in lab VIEW. im using lab view 7 Express.

see if the menu items are say x,y,z, and selecting z one vi will run ok. after closing the vi running through z only, i can able to select y or x, for that corresponding vi will open. my requirement is while z been selected and one vi will be running, i hav to select another menu item and that should also run along with previous vi.

Thanks & Regards

Jagan

0 Kudos
Message 7 of 8
(2,900 Views)

What you are seeing is normal behavior. You could dynamically call the subVIs with the RunVI method and set Wait Until Done to false.

0 Kudos
Message 8 of 8
(2,888 Views)