ā12-18-2014 12:11 PM
How do you change to frontpanel in labview?
I writing a program where the look of the frontpanel have to be different.
How to you bring different frontpanels in front ?
Regards Michael
Solved! Go to Solution.
ā12-18-2014 12:18 PM
If you want multiple windows open, just open the new window. But it sounds like what you really want are subpanels.
ā12-18-2014 12:23 PM
I'm using a state machine.
In the different states there have to be different looks of of the front panel.
Is the an online example?
ā12-18-2014 12:23 PM - edited ā12-18-2014 12:26 PM
What do you mean about "look of front panel"? Decoration? Different elements? You can change sizes/colours, etc. of objects on the FP, or even hide them.
There are many options, all depends on your goal what you need. Another thing you should specify, why you want your FP look different? What is the purpose?
EDIT: I beleive you need a TAB control or subpanels as crossrulz suggested...
ā12-18-2014 12:33 PM
Forgive me my bad explanations
I have attached 2 different looks.
When I press 'quilt' in frontpanel 1, I want to show frontpanel 2.
ā12-18-2014 12:39 PM
You still did not specify: you must use two separate VIs? If not, why do not use a TAB control? So the user can switch between them?
ā12-18-2014 12:41 PM
Then just call the VI 2 and make sure it is set to show its front panel. That would be the simplest approach. So it isn't really different looks of the same panel, it is really different windows being displays at different times.
ā12-18-2014 12:51 PM - edited ā12-18-2014 12:52 PM
I still do not get whether you must go with two separate VIs, or you could do your project with a single main VI. If so, here is a little example with TAB controls:
ā12-18-2014 01:48 PM
Sorry I have to return tomorrow.
Thank you for your help so far
ā12-21-2014 11:38 AM
Sorry for the delay - we have serious sickness in the family.
The tabcontrol is great ! Thatās just what I need. And I guess I can use it no matter if I work with different subviās og just one big vi?
I do understand your example or part of it.
I have made my own example (tabcontrol.vi) with parts of you code.
But the rest (tmp.jpg) I do not understand. Could you explain?
How do you get āTabctl (strict)ā and āPageā ? is it at property note. And whatās the function?
Regards Michael