LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Using more than one front panel at the same time

I have a main program where I can call sub vi’s and then the sub vi’s front panel opens.
I want to use/see/operate more than one front panel at the same time. How I can do it?

For example when I close the main program it won’t close before I close all the sub vi’s front panels.
I use event case to call these sub vi’s. Can I close all vi's using one button?
0 Kudos
Message 1 of 5
(2,991 Views)
I'm not sure I understand what your problem is - in general, there is a limit to the amount of attention a program can require a user to give it - you shouldn't let a user do multiple things at the same time. Preferably, each task should start and be finished.
That said, there are of course valid reasons for displaying several front panels at the same time. You can do so by arranging the windows so that they don't overlap or you can have them overlapping or you can use a subpanel control to display one front panel inside another.
If you call the subVI directly within the event structure, the loop in the main VI will not continue running until the subVI has finished running. If you want its front panel to close when it's done, right click on its icon and select VI Properties. Then, go to Window Appearance, select customize and set Show Front Panel When Called and Close Afterwards If Originally Closed to true.
If this doesn't help, write some more details about your problem.

___________________
Try to take over the world!
Message 2 of 5
(2,973 Views)
I have a main program that is controlling Field Point information and various things.
Then I have done sub vi's that have graphs and controls and indicator.
I have more than one of these sub vi's that shows different things(helps to see things better).
I want to see information from more than one sub vi front panel and the main program
should be running because it monitores the field point IO point continously.

Do I make more that one main program and open them all one by one?
0 Kudos
Message 3 of 5
(2,970 Views)
I wouldn't use subVIs for display, at least not if you plan to have them open all the time. Instead, I would suggest that you have one loop with a FP VI which will talk to the FP all the time and will pass to the data to the other loops through a variable or a functional global.
Then, you can use a tab control to organize your display. If there is no specific reason for not having the graphs in the same VI, you can use a tab control to organize it. If you can't, you can also use subpanels to display the VIs and put several subpanels in your VI.
If you still want to display the VIs seperately, you can control their positions and sizes through their proerty nodes, but I don't think there's any reason for this.
To learn more, I suggest you read the LabVIEW style guide. I think it has some tips about application design.

___________________
Try to take over the world!
0 Kudos
Message 4 of 5
(2,960 Views)
Thank you very much. I think that I can get it working now.
0 Kudos
Message 5 of 5
(2,952 Views)