LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Building SubVIs w/o Controls & Indicators

Must all subVI inputs & outputs be passed through controls(input) and indicators(output) on the front panel?
 
Can a subVI be block diagram only and be called/wired without using front end components?
 
I have several portions of labview functionality that I would like to wrap into small individual subVIs, and it seems odd that my only option for input/output is through controls/indicators.
0 Kudos
Message 1 of 7
(3,340 Views)
Don't look at the controls as GUI controls but as API interface nodes.
You can write a VI without any FP but it has no interface to the outside world.

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 7
(3,334 Views)
I agree with TonP.
 
Also remember that subVIs that don't have ther FP open, actually don't load or update their front panel (with a few exceptions where needed, e.g. if it prints its FP programmatically). There is little overhead calling a subVI that does not show its panel. You can also hide connected controls or indicators if they are not to be used by the operator.
 
Of course you could write a subVI that gets invoked exclusively via VI server and communicates with the rest of the wold via global or shared variables... but why??? That would be much more involved. 🙂
0 Kudos
Message 3 of 7
(3,326 Views)
Ok guys, I hear what you're saying.   So how do I pass my "error in" and "error out" handling?
 
Please see attached...
0 Kudos
Message 4 of 7
(3,320 Views)
Right-click on the error input and "create control", right-click on the final error output and "create indicator". Now connect them to terminals on the connector pane. Move them offscreen or hide them if you don't want to see them.
 
What's wrong with that??
0 Kudos
Message 5 of 7
(3,312 Views)
Just create FP-controls for the Error in and out, and connect them to your conenctor pane.

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 6 of 7
(3,309 Views)
Sweet!
 
That works like a champ!
 
Thank-you altenbach & TonP!
0 Kudos
Message 7 of 7
(3,302 Views)