LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I turn a VI into a SubVI?

I have a VI that im useding for triggering that i want to include in my program, but if i insert it into my program there are no terminals. I want to input 1 variable (channels) and leave the rest at defualt as well as get the waveform data back after it runs. So basicly, how do i go about editing the SubVI (triggering) so that i input the channels and it outputs the waveform only?
0 Kudos
Message 1 of 3
(3,077 Views)
You have to wire the terminals of the connector pane to your controls and indicators. Look up "assigning terminals to controls and indicators" in VI, Function, & How-To Help.
0 Kudos
Message 2 of 3
(3,077 Views)
With the vi open, what you will want to do is right click on the icon (upper right hand corner) and select show conector. You will see several terminals. With the wiring tool selected, left click once on a terminal you want to connect then click on the control on the front panel you want to connect the terminal to (channels in this case). Do the same for the waveform indicator for your output.
A couple of notes: You can select different terminal patterns or add/remove terminals by right clicking on the terminals. Try to keep inputs to the vi on the left and outputs on the right. Also, you should connect terminals to input error and output error (those come in handy for sub-vi's when used to control the data flow in a top-level vi).

Good luck.
0 Kudos
Message 3 of 3
(3,077 Views)