LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

no terminals on instance of new sub-vi

If I create a new sub-vi from scratch, when I try to instantiate it

then the instance has no terminals.  I don't just mean not visible --

I looked at it in both Icon and non-icon mode.  The terminals simply aren't there.   

There is no context menu item to show terminals (only show label...).

The sub-vi does have several controls and indicators.

 

However, if I create some objects, select them, and use "Edit:Create Sub-VI",

then when I instantiate this new sub-vi I *do* see all the terminals.

 

 

The block diagram is identical in both cases.  I did the following:

 

- create ne sub-vi

- save as new file

- close all

- open top-level VI

- instantiate new sub-vi

 

I see no terminals on the instance

 

 

If instead I do:

 

- create new "temporary" vi (it will be discarded)

- select all in new temp-vi block diagram

- Edit:Create Sub-vi

- save created sub-vi as new file

- close all (discarding the temporary VI)

- open top-level VI

- instantiate new sub-vi

 

Then I *do* see all the terminals on the instance.

 

Is there something special I have to do to a control or indicator

to make it appear as a terminal on an instance of the sub-vi?   I've looked

through every app menu and context menu for the vi and the controls and

indicators and nothing seems to address this.

 

Thanks for your help!

Best Regards,

 

  

 

 

0 Kudos
Message 1 of 3
(4,338 Views)

JeffBuckles wrote:

 

Is there something special I have to do to a control or indicator

to make it appear as a terminal on an instance of the sub-vi?   I've looked

through every app menu and context menu for the vi and the controls and

indicators and nothing seems to address this.

 

Thanks for your help!

Best Regards,

 


The routine for creating terminas on VIs is listed here (LabVIEW help\Fundamentals\Creating VIs and SubVIs\How To\Creating subVIs)

 

In short the routine is this:

  • Right click on the VI icon in the Front panel window
  • Select 'Show terminals'
  • Right click on the VI icon 
  • Select 'Pattern', choose a pattern you like
  • Click on the control\indicator you want to use
  • Sequentially click on the terminal-part you want to connect


Some pointers:

  • If you can't connect a control\indicator to a terminal you most likely allready used that control
  • Controls are most of the time connected to the left part of the terminal, indicators to the right (support left to right wiring better)
  • Use a standard pattern, in LabVIEW 8.2 the standard has changed to 4224 (4 on the left, 2 on the second column, 2 on the third column, 4 on the right)


Good luck,

 

Ton

Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
0 Kudos
Message 2 of 3
(4,329 Views)

You have to actually wire the controls and terminals to the connector pane. This is not automatic when you write a VI from scratch. Right click on the VI's icon and select 'Show Connector'. Click on a terminal of the connector pane and then click on the control/terminal. This is all covered in the on-line help topic 'connector panes>assigning terminals'.

 

 

0 Kudos
Message 3 of 3
(4,326 Views)