08-27-2008 10:41 PM
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,
08-27-2008 11:21 PM
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:
Some pointers:
Good luck,
Ton
08-27-2008 11:24 PM
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'.