LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

"severel" frontpanels

Hallo!

I have a question about frontpanels..
I want my "main" program to "load" different frontpanels for each hardware that the user wishes to communicate with. I want the user to be able to choose his hardware and then get the controllers and indicators refferring to that hardware in a "new" frontpanel window, instead of having all controllers and indcators for all hardwares in the same frontpanel window!

And...I want to solve this without using "tabcontrol"!

Is there a way?

Thanks Fredda!
0 Kudos
Message 1 of 16
(3,696 Views)
Hi,
By asking the user to select different hardware in the first screen ,we will be able to use case loops to load many front panel and making the windows floating all the front panels can be loaded and used .
vicky
0 Kudos
Message 2 of 16
(3,691 Views)
Ok, im a new user..
How do I program this? Loading frontpanels? Making the windows floating?

/Fredda
0 Kudos
Message 3 of 16
(3,691 Views)
hi,
all you have do is create as many subvi's as many hardware you have with what ever front panel you want ,now in the main screen that in the screen where the user can select the hardware he wants and you pop up that particular subvi,you can set the window property from the VI properties\window apperance\customize
vicky
I am attaching a ex for your understanding,hope it helps
0 Kudos
Message 4 of 16
(3,691 Views)
Hi I'm working in a very similar program. I work it out looking at the LV help for "Property Node" (to handle VIs propertries) and "Call by reference Node" (to handle VIs methods). Look at the Controls submenu "application control"... hope this help
0 Kudos
Message 5 of 16
(3,587 Views)
Hi!

thanks for your help and time but..

Why do you have a lokal variable "hardwaretype"?

And, I still dont understand how to get the changing
of frontpanels? When choosing lets say hardware 1, I would like another frontpanel with other controls that the user can push.

/fredda
0 Kudos
Message 6 of 16
(3,691 Views)
hi fred,
do one thing in the VI i sent you you can replace those ONE BUTTON DIALOG with the VI's u want for hardware 1,2..... etc this will pop up the front panel which you have selected in the combo box.
If you are not yet clear give me some time may be by week end i shall send you a fully working program.
vicky
0 Kudos
Message 7 of 16
(3,691 Views)
Hi vicky!

me again

I have made a test subvi.
Now I would like its frontpanel to show up when
user chooses hardware 1. How doing that?? Can you help
me place it and make the program work?

Or,I would also very much like you to give me your
fully working program if you want to.

I attached my simple subvi and your testvi

Thanks Fredda
Download All
0 Kudos
Message 8 of 16
(3,691 Views)
hi fred,
i have changed the vis and reattached the vis you can have a look at it.if you are not clear ask me again.
vicky
Download All
0 Kudos
Message 9 of 16
(3,691 Views)
Hi again vicky

Thanks a lot, but I cannot open your files because
they were made in a newer version of LV.
I run LV 7.0. Your files are in 7.1?

Did not have this problem before with your testfile.

/Fredda
0 Kudos
Message 10 of 16
(3,691 Views)