09-10-2013 08:55 PM
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,
09-10-2013 09:03 PM
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.
09-10-2013 09:10 PM
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
09-10-2013 09:26 PM
I assiagn the input and output in the subvi, shouldn't it be generating the terminal automatically?
09-10-2013 09:37 PM
the color of terminal disappears as soon as I click on the input control pin.
same for the output.
09-10-2013 09:42 PM
Look as if I have different settings.
09-11-2013 04:40 AM
@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
09-11-2013 07:21 AM
@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?