02-18-2009 08:24 AM
Hi all i'm very new to labview and would appreciate a hand with something. At the moment I'm trying to make a simple main menu which will open different vi's depending on which button is pressed. I've attached screenshots to demonstrate what im saying.
All i want is for each button to open a different VI, and also close the main menu so that i only have 1 window open at a time. So for example clicking deceleration should open deceleration.vi and close the main menu. I've tried to find out how to do this and discovered that i need to use event structures but beyond that i'm stuck.
Cheers, Iain
Solved! Go to Solution.
02-18-2009 08:34 AM
Hi Iain,
you need only one event structure. Create an event case for every button and insert your code there.
Use the "Open VI Reference" function to get a reference to the vi you want to show. With an invoke node you can change the visibility state of it.
Mike
02-18-2009 08:43 AM
thanks Mike,
so when I add the open vi reference block what do i need to connect to it, presumably I have to specify the VI path but do i need anything else?
02-18-2009 08:55 AM
Hi Iain,
Here is quick example I created.
02-18-2009 08:59 AM
02-18-2009 09:06 AM
02-18-2009 09:49 AM
02-18-2009 09:54 AM
02-19-2009 06:28 AM
02-19-2009 06:51 AM