LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I create multiple front panels for a single block diagram?

Solved!
Go to solution

Hello,

 

   I have developed a VI with multiple controls and indicators that needs to run on computers with screen resolutions ranging from 800x600 to 1680x1050. The problem I'm having is that the front panel does not properly scale for this range of resolutions by checking the options in the "VI properties" option. Is there a way to create multiple front panels of various sizes for my block diagram and programmatically select the appropriate front panel based on the screen resolution?

0 Kudos
Message 1 of 8
(10,679 Views)

You could use a tab control as an indicator and select which one to display depending on the panel size.

Or you could rearrange the controls using property nodes.

Troy - CLD "If a hammer is the only tool you have, everything starts to look like a nail." ~ Maslow/Kaplan - Law of the instrument
0 Kudos
Message 2 of 8
(10,661 Views)

You could possibly have multiple front panels.  The controls and indicators don't really do anything.  There would be just enough code to gather up the references for all the front panel objects and pass them into a main working VI that doesn't show itself, but reads all of the controls and puts all of the data into the indicators by way of the references passed to it and property nodes.

0 Kudos
Message 3 of 8
(10,646 Views)

Ravens Fan,

 

   How can I do this? I do not wish to use a tab control that duplicate my existing controls and indicators because I already have way to many, and I don not wish to programatically scale the controls, indicators and fonts because that tends to shift things around a bit. Would you be able to guide me in designing multiple front panels which will be chosen based on screen resolution that read and send data to a main VI?

0 Kudos
Message 4 of 8
(10,604 Views)
Solution
Accepted by topic author Carlosgvt

See the attached Zip file.

 

I have two different front panels.  Open either one and run it.  They both call MainCode.vi which takes the references passed to it and register for events.  From there, it does all the work of the code you would have put in your front panel .vi.

 

This way each front panel can be laid out however you want for each screen resolution.

Message 5 of 8
(10,593 Views)

Thanks a lot! I will follow the same idea to create multiple front panels.

0 Kudos
Message 6 of 8
(10,579 Views)

Hi,

 

          I have exactly the same problem, but my LabVIEW version is 2009, can you save the solution at older version?

 

          Thank you very much.

 

Best Regards,

Luis A. Mata C.
Ing. Electrónico
Whatsapp: +58-414-1985579
BBM Pin: 2B83E99A
Thanks: Kudos
0 Kudos
Message 7 of 8
(10,447 Views)

Hi Luis,

 

Here you go.

 

 

Regards

Che T.
Applications Engineer
National Instruments
Message 8 of 8
(10,421 Views)