LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I insert a panel with diagram into anther panel with diagram?

Hi all,
 
I have a problem where by I have created a part of a vi with a complicated panel/diagram separately.  How can I insert this new vi's complicated front panel and diagram back into my original vi??
 
Cheers
0 Kudos
Message 1 of 7
(3,077 Views)
You have two options if it is complicated
 
- Keep the original and other complicated program separate and insert it into the original VI's front panel using a supinely
 
- To merge I would make it the code a subroutine and use a strict type control for the supinely but you will have to group it as a cluster.
 
Hope this helps,
 
Matt
Matthew Fitzsimons

Certified LabVIEW Architect
LabVIEW 6.1 ... 2013, LVOOP, GOOP, TestStand, DAQ, and Vison
0 Kudos
Message 2 of 7
(3,073 Views)
Hi, Thanks for the help Im using version 6.1 and not been an advanced user, dont know what "supinely" refers to?
 
Thanks.
0 Kudos
Message 3 of 7
(3,046 Views)

I think he meant subpanel, but I don't think 6.1 supported those.

Keeping complex code out of your VI is usually a good thing. Are you sure you want it to be inside your VI?

If you do, the only thing you can really do is select all the code and paste it in the block diagram of the VI. This will copy all the front panel controls as well, but not decorations.

If you don't have to put inside your VI, you can use Matt's second suggestion - call the other VI inside your VI. You can do this by dragging it into your block diagram. You can make its front panel appear by going to File>>VI Properties>>Window Appearance.

This is really basic stuff. To learn more about LabVIEW, I suggest you try searching this site and google for LabVIEW tutorials. Here and here are a couple you can start with. You can also contact your local NI office and join one of their courses.
In addition, I suggest you read the LabVIEW style guide and the LabVIEW user manual (Help>>Search the LabVIEW Bookshelf).


___________________
Try to take over the world!
0 Kudos
Message 4 of 7
(3,040 Views)

supinely = subpanel  Looks like spell checker got me!

Don't need to be an advanced user to spell correctly Smiley Surprised

I don't know if 6.1 has subpanels but you sure could use an upgrade.  7.1 and 8.0 have many advances to make life easier.

Matt

Matthew Fitzsimons

Certified LabVIEW Architect
LabVIEW 6.1 ... 2013, LVOOP, GOOP, TestStand, DAQ, and Vison
0 Kudos
Message 5 of 7
(3,039 Views)

Hi, thanks for the advice I know about calling a vi, just wanted to know if could bring it into the original vi in its entirety without any effect to its front panel and diagram.

Thanks

0 Kudos
Message 6 of 7
(3,007 Views)
Hi,
 
Sounds like I should get an upgrade.  Been putting it off for long time.
 
Cheers
 
 
 
 
0 Kudos
Message 7 of 7
(3,006 Views)