LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

drop a subvi with inputs wired

Solved!
Go to solution
Hi all,

Is it possible to drop a subvi onto the block diagram and have all the (required) inputs automatically wired with constants.

I vaguely remember reading how to do this in a previous post (possibly a nugget), but can't find it anymore. I think it involved holding down Ctrl/Shift/SomethingElse when you dropped the subvi.

Thanks
Dave
0 Kudos
Message 1 of 2
(2,471 Views)
Solution
Accepted by topic author DavidU

Hi DavidU, in the LabVIEW Quick Reference Card with Shift+ Drag  it "Places that VI as a subVI on the block diagram with constants wired for controls that have non-default values."

If you want to have some subVIS with all the terminals cabled you could use "Merge VI" (if using LabVIEW 8.2 or below ) or "Snipets VI" if you are using 8.5 or above. The procedure is the same but in LabVIEW 8.5 or above instead of "Merge VIs" the option would be "Place VI Content". The advantage is that you can not only have the controls wired but you could have them in a specific position in the front panel. You would need to create a wrapper VI (that is the one you call to place content. But when you use this your subVI would be cabled.

How do I Put Snippets of Code on My LabVIEW Palettes?

How Can I Place the Block Diagram Code Snippets on a Palette?

Hope this helps

Benjamin C
Principal Systems Engineer // CLA // CLED
Message 2 of 2
(2,449 Views)