LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

subvi

I am a quite new to LABVIEW. I have a one.vi which consists of several subvi's. These subvi's have the input and output , set up from creating control variables (named like VISA session (input) and DUP Visa Session (output) ) . After I see that these subvi run correctly, I open the vi file, but it does not reflect every terminals of subvi. 

 

Especially, the inputs and outputs of subvi are not shown in the vi file. 

 

Do I need to set up these variables as input and output?

 

thank you in advance, 

0 Kudos
Message 1 of 8
(3,289 Views)

You need to tie you inputs and outputs to your connector pane for each of the subVIs.  It is usually best to have references in the upper left corner and upper right corner while putting the error clusters in the bottom left and bottom right corner of your connector pane.  Inputs on the left and outputs on the right.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 2 of 8
(3,286 Views)

You need to connect the controls and indicatros to the connector pane (sometimes called conpane). In the newer versions of LV the conpane is visible immediately to the left of the icon on the front panel. use the wiring tool to click on the control or indicator and then click on the desired terminal in the conpane. Repeat for all inputs and outputs.

 

In older versions of LV you need to pop up on the icon to get access to the conpane.

 

This information is in the LabVIEW help. Search for "connector panes".

 

Lynn

Message 3 of 8
(3,283 Views)

I assiagn the input and output in the subvi, shouldn't it be generating the terminal automatically?

 

 

0 Kudos
Message 4 of 8
(3,277 Views)

the color of terminal disappears as soon as I click on the input control pin. 

 

same for the output. 

 

 

0 Kudos
Message 5 of 8
(3,268 Views)

Look as if I have different settings. 

 

 

 

0 Kudos
Message 6 of 8
(3,262 Views)

@mhpark wrote:

I assiagn the input and output in the subvi, shouldn't it be generating the terminal automatically?

 

 


You connect a position in the connector pane to a control/indicator and it'll change color and show up on sub-vi's.

 

If you by generating mean LV will create controls, then no. (unless you use Create sub-vi from existing code which is a special case).

 

/Y

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
Message 7 of 8
(3,234 Views)

@mhpark wrote:

the color of terminal disappears as soon as I click on the input control pin. 

 

same for the output. 

 

 


What do you mean the color of the terminal disappears?  Can you post an image?


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 8 of 8
(3,215 Views)