LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

change front panel

Solved!
Go to solution

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

0 Kudos
Message 1 of 14
(3,860 Views)

If you want multiple windows open, just open the new window.  But it sounds like what you really want are subpanels.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 2 of 14
(3,851 Views)

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?

0 Kudos
Message 3 of 14
(3,841 Views)

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...

0 Kudos
Message 4 of 14
(3,840 Views)

Forgive me my bad explanations

 

I have attached 2 different looks.

 

When I press 'quilt' in frontpanel 1, I want to show frontpanel 2.

 

 

 

 

Download All
0 Kudos
Message 5 of 14
(3,825 Views)

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?

0 Kudos
Message 6 of 14
(3,813 Views)

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.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 7 of 14
(3,812 Views)
Solution
Accepted by topic author Michael.Koppelgaard

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:

 

0 Kudos
Message 8 of 14
(3,806 Views)

Sorry I have to return tomorrow.

Thank you for your help so far Smiley Happy

0 Kudos
Message 9 of 14
(3,770 Views)

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

Download All
0 Kudos
Message 10 of 14
(3,674 Views)