06-29-2017 10:19 AM
I am new to programming in LabVIEW and I have tried to create a subvi in the Block Diagram. The Subvi works properly in the separate VI. when I dragged it to the Block Diagram, It can not be activated. That means I could not wire it to the input parameters. Also, the subvi creating option in the Edit button is not highlighted. I attached the related photo below. I hope I could figure it out with your help.
Thanks.
Solved! Go to Solution.
06-29-2017 10:56 AM
You need to connect your controls and indicators to the connector pane. Before going any further, I suggest taking a look at the learning resources on the main page of this forum.
06-29-2017 11:06 AM
Any VI can be a subVI, but you need to define the connector pane.
The "create subVI" menu requires that parts of the diagram is selected and it will wrap the selected code into a subVI, removing that part of the code from the main diagram and wrapping it into a subVI. This will already define the connectors too, and if the toplevel VI was working, the new code will work immediately (with some exceptions) and in the same way.
06-29-2017 01:20 PM
Thanks guys, I figured it out. that is exactly the connector pane issues.
Best.