03-29-2011 09:24 AM
Hi, I work as an instructor and I am a beginner in Labview-programming.
I want to use Labview vi's that I've found here and there, in a tutorial framework, so that the student can get access to vi's in a consecutive mannner.
I believe that by adding text to simulations found here, I can make a solid tutorial in let's say signal processing for my students (military).
I would need a framework which allows me to insert vi's in a structure containg buttons "NEXT" , "BACK" and "Back to Top".
Archangel, helped me with an event structure found here, but there one can only return to the top-level. I want to be able walk back and forth from subvi to subvi , with "NEXT" and "BACK".
If one has a tutorial with many parts, it would also be nice if one could go directly to a submenu directly from the top. So that the students doesn't have to click "NEXT" a bunch of times, to reach there.
See the attached, if you don't understand what I mean.
Can somebody help me with that?
Kindest regards,
Lasse
03-30-2011 07:30 AM
The solution will depend on how many steps you have and how easy you want it to be to modify them. The classic way to do this sort of thing is to use a tab control with hidden tabs. Each tab is one step. As you go from one step to the next, programmatically change the page of the tab control which is visible. This works for small numbers of steps which do not have lots of code behind them. For larger numbers of steps, the tab control is replaced by a subpanel control, and the steps are independent VIs loaded into the subpanel. I would recommend this architecture if you want a generic one. You can find information on using subpanels in the LabVIEW help and here.
Good Luck!