LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

using multiple front panels as templates

Hi, is it possible to call up identical front panels, apart from the default values on the front panels e.g. one front panel with one control at 4000 and another identical front panel with 5000. any help greatly appreciated.

thanks stuart
0 Kudos
Message 1 of 5
(2,780 Views)
Hi Stuart,

I am not exactly sure what you are trying to accomplish. If you want a Control to Have Different Default Value. You can pass this value under the Conditions you have established and use One Panel but different Defults on Control.

Please Elaborate the Problem.

Mache.
Good Luck!

Mache
0 Kudos
Message 2 of 5
(2,780 Views)
Hi Mache, what i am trying to do is have one front panel with lets say 50 controls and be able to load a template from a file which has pre-defaulted different control values.so the user that is going to use it does not have to change all the control values they need, but i take your point i could do what u have suggested above. i think i just want to know if its possible.

thanks stuart
0 Kudos
Message 3 of 5
(2,780 Views)
You'll have to clone the VI, read about it on this thread:

http://exchange.ni.com/servlet/ProcessRequest?RHIVEID=101&RPAGEID=135&HOID=506500000008000000A07D0000&UCATEGORY_0=_49_%24_6_&UCATEGORY_S=0&USEARCHCONTEXT_QUESTION_0=VI+cloning&USEARCHCONTEXT_QUESTION_S=0
Message 4 of 5
(2,780 Views)
Hi Stuart,

The easiest way is to create local variables for all the controls that might have different default values. Then use a sequence structure to initialize the variables before any code executes.

You might pull the values from a file, or from inputs of the subVI.

I once used a similar technique that had a boolean input of "advanced" or "beginner" and the front panel changed it's appearance depending on this input (resized the front panel and made certain controls hidden).
0 Kudos
Message 5 of 5
(2,780 Views)