From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Subpanels in CVI like those in LabVIEW

Hi,

 

I would like to create subpanels in LabWindows / CVI as in LabVIEW ie where a panel is displayed as a subpanel of a panel that includes it. Where can I find an example?

 

Regards,

 

Maurizio.

Maurizio Bollini
Certified LabVIEW Architect
http://www.met.it
https://www.linkedin.com/in/mauriziobollini/
0 Kudos
Message 1 of 6
(1,351 Views)
0 Kudos
Message 2 of 6
(1,343 Views)

Thanks Wolfgang.

 

I'll try it shortly.

 

Regards,

 

Maurizio.

Maurizio Bollini
Certified LabVIEW Architect
http://www.met.it
https://www.linkedin.com/in/mauriziobollini/
0 Kudos
Message 3 of 6
(1,339 Views)

It's been a long time since I played with LabVIEW so I'm not sure this is the correct answer: I suppose the closest equivalent to subpanels probably are CVI child panels: you could try running panels.cws example program that shows you what child panels are and how do they behave.

To locate the example you can run the Example Finder (Help >> Find Examples... menu item) and serarch for 'panels' in the search tab.

 

 

What an idiot I am! I saw the discussion as new and replied without focusing on Wolfgang'2 answer! 😏



Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 4 of 6
(1,299 Views)

Thanks Roberto. I have tried all the examples but from what I have seen, the functionality is different. In LV you can define an area where you can make one panel or another appear. In CVI the mechanism is that of parent / child where one panel can host another. It is about having to adapt to what is available.

 

Regards,

 

Maurizio.

 

*** started in 1993 with LV 4.x and CVI 3.x 😉

Maurizio Bollini
Certified LabVIEW Architect
http://www.met.it
https://www.linkedin.com/in/mauriziobollini/
0 Kudos
Message 5 of 6
(1,289 Views)

I know this is an old thread. But to help people out here there is a workaround. Setup a tab control, hide the tabs (tab control property), delete the tabs (DeleteTabPage) each time you switch panels, and load in your panel via the function InsertPanelAsTabPage. Works great as a sub panel. 

0 Kudos
Message 6 of 6
(1,110 Views)