cancel
Showing results for 
Search instead for 
Did you mean: 

How to move terminals around on a subVI icon

SOLVED
queue_ball
Member
Solved!

How to move terminals around on a subVI icon

I'm creating a library of subVIs for a working group, and the terminals need to be arranged more rationally than they come out when I simply create the subVI.  Is there a way to move the terminals around?

7 REPLIES 7
OEM_Dev
Member

Re: How to move terminals around on a subVI icon

hold ctrl while clicking on them allows you to swap two terminals

Gregory
Trusted Enthusiast
Solution

Re: How to move terminals around on a subVI icon

Click the first of two terminals that you wish to swap. Hold control while clicking the second terminal you wish you swap. You can swap with blank terminals as well.

queue_ball
Member

Re: How to move terminals around on a subVI icon

When I finally found where to do that (left icon, upper right-hand corner of Front Panel window), it worked beautifully.  Thanks much.  Brent

altenbach
Knight of NI

Re: How to move terminals around on a subVI icon

Of course you need to watch out if you also leave the subVI in the code where you created it. Swaping connectors on the connector pane will NOT swap the connected wires in the calling VI. You need to be very careful, especially if several terminals are of the same datatype.

billko
Proven Zealot

Re: How to move terminals around on a subVI icon


@altenbach wrote:

Of course you need to watch out if you also leave the subVI in the code where you created it. Swaping connectors on the connector pane will NOT swap the connected wires in the calling VI. You need to be very careful, especially if several terminals are of the same datatype.


Hope for broken arrows in every VI that uses this subVI, otherwise you may not catch all the mistakes as LabVIEW tries to guess where the old wires are supposed to go.  What I do, if at all possible, is to actually change the pattern to something similar, then make the change.  Then all the VIs that use this subVI have broken arrows because they will all complain about needing to be re-linked.  Re-link them and check them as you go.  If needed, you can always re-choose the original pattern and re-re-link them.

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
tst
Knight of NI Knight of NI
Knight of NI

Re: How to move terminals around on a subVI icon


@billko wrote:
What I do, if at all possible, is to actually change the pattern to something similar, then make the change.  Then all the VIs that use this subVI have broken arrows because they will all complain about needing to be re-linked.  Re-link them and check them as you go.  If needed, you can always re-choose the original pattern and re-re-link them.

Remember that this only applies to callers which are actually loaded when you make this change. If the VI you're changing might be called by other VIs, which are not loaded, you should be aware of that and take appropriate steps (like loading those VIs before modification, or not doing the modification or having unit tests to see that they still work).


___________________
Try to take over the world!
billko
Proven Zealot

Re: How to move terminals around on a subVI icon


@tst wrote:

@billko wrote:
What I do, if at all possible, is to actually change the pattern to something similar, then make the change.  Then all the VIs that use this subVI have broken arrows because they will all complain about needing to be re-linked.  Re-link them and check them as you go.  If needed, you can always re-choose the original pattern and re-re-link them.

Remember that this only applies to callers which are actually loaded when you make this change. If the VI you're changing might be called by other VIs, which are not loaded, you should be aware of that and take appropriate steps (like loading those VIs before modification, or not doing the modification or having unit tests to see that they still work).


True.  I forgot that step because I do that so automatically.  Thanks for fixing my suggestion.  Smiley Happy

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.