LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Is there a way to automatically create a subvi that would require more than 28 panes?

I can automatically create a subvi by selecting part of the block diagram code and then go to Edit >> Create Subvi.  This is a very usefull feature; especially if there are property nodes to be referenced in the new subvi.  Where there are property nodes, it connects each node as a reference to a pane connector.  However, it will not work if there are more than a total of 28 property nodes and other connections.
 
Is it possible to automatically create the subvi, but not have it make any connections to the connector pane?  I would then wire all the property node references through a cluster.
 
Dave
0 Kudos
Message 1 of 4
(2,716 Views)
Hi dj143,
      Try this:
... that is bundle AND unbundle on the diagram, then select only the unbundle when creating the SubVI. Smiley Happy
 
Cheers!

Message Edited by tbd on 08-28-2007 10:56 PM

"Inside every large program is a small program struggling to get out." (attributed to Tony Hoare)
Message 2 of 4
(2,711 Views)
Dave,

tbd is correct about the way how to pass more then 28 paramaters to/from a subVI. The reason is that LV limits the number to parameters to.... tadaa: 28 🙂
Nevertheless, it is NOT recommented to
a) overuse the connectorpane (it is suggested to pass a maximum of 16 parameters)
b) use the method for creating subVIs just like you do.

Why b)?
It is a simple reason of style. Bad style leads to bad programming which leads to unstable applications/unmanagable sourcecode.......
There are "style guides" for programming with LabVIEW which are a simple compilation of guidelines. Those guidelines are of course no hard "rule" but suggestions on how to improve your programming. They have proven themselfs many times in the past, so i think you definetly want to take a peek into them for improving your own sourcecode-quality.
You can find an "entry" to this here.

hope this helps,
Norbert B.
Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 3 of 4
(2,691 Views)

For your question subject, the answer is a direct NO !


 


@dj143 wrote:
IIs it possible to automatically create the subvi, but not have it make any connections to the connector pane?


For this too, the answer is NEGATIVE, as the very purpose of the Create SubVI option in the Edit menu itself is connecting all the IOs inside the connector pane, so that the created SubVI can be simply called in any VI & the connections of the variables IOs can be done instantaneously.

- Partha ( CLD until Oct 2027 🙂 )
Message 4 of 4
(2,683 Views)