Jump to content

Connector pane: Difference between revisions

From LabVIEW Wiki
No edit summary
Added details
Line 1: Line 1:
== Connector Panes  ==
{{underconstruction}}
{{TOCright}}
The '''Connector Pane''' is used to pass data to and from a [[SubVI]]. The Connector Pane is available in the [[Front Panel]] window's upper right corner next to the [[VI Icon]].


Connector panes are used in subVI's to pass parameters to and from the subVI. The connector pane is selected by right clicking on the VI icon in the upper right hand corner of your VI, then choosing the '''Show Connector''' menu item.
== Patterns ==
 
Right-click on the Connector Pane and choose a pattern for you subVI's connector pane.  
[[Image:Show connector selection.png|thumb|center|300px|How to view the connector pane in a VI]]
 
Right-click again on the VI icon and choose a pattern for you subVI's connector pane.  


[[Image:Connector Pane Patterns.png|thumb|center|300px|How to select a connector pane pattern]]  
[[Image:Connector Pane Patterns.png|thumb|center|300px|How to select a connector pane pattern]]  
Line 11: Line 10:
It is considered good practice to choose a pattern that has more inputs/outputs than you need when writing the VI so that new inputs or outputs can be added without changing the connector pane and causing the VI's that link to your subVI to recompile.  
It is considered good practice to choose a pattern that has more inputs/outputs than you need when writing the VI so that new inputs or outputs can be added without changing the connector pane and causing the VI's that link to your subVI to recompile.  


The 4x2x2x4 pattern highlighted above is the most commonly used for NI primitives. In LabView 8 and above the connector pane is defaulted to the 4x2x2x4 pattern.  
The 4x2x2x4 pattern highlighted above is the most commonly used for NI primitives. In [[LabVIEW 8]] and above the connector pane is defaulted to the 4x2x2x4 pattern.  


To customize the default connector pane used for new VIs, set the defaultConPane variable in your [[LabVIEW configuration file]] (see [[LabVIEW configuration file/Miscellaneous#defaultConPane|Miscellaneous>defaultConPane]]).  
To customize the default connector pane used for new VIs, set the defaultConPane variable in your [[LabVIEW configuration file]] (see [[LabVIEW configuration file/Miscellaneous#defaultConPane|Miscellaneous>defaultConPane]]).  


[[Image:ConPane.png|center|Connector pane values]]
[[Image:ConPane.png|center|Connector pane values]]
== Connecting Controls and Indicators ==
== Switching Terminal Positions ==
== Best Practices ==
== See Also ==
== History ==
{| class="wikitable"
! Version
! Change(s)
|-
|[[File:LV8-2013.png|frameless|border|64x64px|LabVIEW 2011|link=LabVIEW 2011]]
|In [[LabVIEW 2011]] the Connector Pane was changed to always be visible on the [[Front Panel]] window next to the [[VI Icon]].  [[LabVIEW 2010]] and earlier only the Connector Pane or the [[VI Icon]] was visible at a time and they were googled between via a right-click menu ('''Show Connector''' or '''Show Icon''').
|}


[[Category:Calling a VI]]
[[Category:Calling a VI]]
[[Category:Connector Pane]]
[[Category:Connector Pane]]

Revision as of 16:06, 12 May 2020

The Connector Pane is used to pass data to and from a SubVI. The Connector Pane is available in the Front Panel window's upper right corner next to the VI Icon.

Patterns

Right-click on the Connector Pane and choose a pattern for you subVI's connector pane.

How to select a connector pane pattern

It is considered good practice to choose a pattern that has more inputs/outputs than you need when writing the VI so that new inputs or outputs can be added without changing the connector pane and causing the VI's that link to your subVI to recompile.

The 4x2x2x4 pattern highlighted above is the most commonly used for NI primitives. In LabVIEW 8 and above the connector pane is defaulted to the 4x2x2x4 pattern.

To customize the default connector pane used for new VIs, set the defaultConPane variable in your LabVIEW configuration file (see Miscellaneous>defaultConPane).

Connector pane values
Connector pane values

Connecting Controls and Indicators

Switching Terminal Positions

Best Practices

See Also

History

Version Change(s)
LabVIEW 2011 In LabVIEW 2011 the Connector Pane was changed to always be visible on the Front Panel window next to the VI Icon. LabVIEW 2010 and earlier only the Connector Pane or the VI Icon was visible at a time and they were googled between via a right-click menu (Show Connector or Show Icon).