LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

modifying input terminals to a subVI

Hello, I am having a problem, and maybe I am going about it the wrong
way...

I am porting a C program to LabView. In the end it will be a mix of
LabView and C using a CIN node. THis is very time consuming, and I have
40+ inputs to the C program. I would like to create a subVI with just a
string output, then add inputs as needed. Is this possible?

I have found the way to add terminals to a subVI, but not how to link an
indicator (in the subVI) to a terminal.

torleiv
0 Kudos
Message 1 of 6
(4,200 Views)
Torleiv Flatebo-Ringer wrote:

> Hello, I am having a problem, and maybe I am going about it the wrong
> way...
>
> I am porting a C program to LabView. In the end it will be a mix of
> LabView and C using a CIN node. THis is very time consuming, and I have
> 40+ inputs to the C program.

My first suggestion would be to turn the C code into a DLL (assuming
Windows).
This may seem more work but it will be easier to transport ,use, maintain
etc.
CINS are fine but I would only use them in extreme cases, and only one or
two.

> I would like to create a subVI with just a
> string output, then add inputs as needed. Is this possible?

Yes, but only during development, you can not add them programatically
(ie when the VI is running.

>
>
> I have found the way to add term
inals to a subVI, but not how to link an
> indicator (in the subVI) to a terminal.

On the front panel right click on the ICON in the upper right corner and
select
"Show Connector" It will show as many terminals as you have objects on the
front panel
You can add more by right clicking again and choosing the pattern you would
like.
Use the hand tool to click on the indicator (or control) and then click on
the box where
you want the terminal to be. The terminal should then change to black, after
you click somewhere
else it will change to the color of the type of item connected to it.
IE blue for a I32.

Hope this helps and good luck,
Kevin Kent
0 Kudos
Message 2 of 6
(4,200 Views)
....
> Use the hand tool to click on the indicator (or control) and then click on
> the box where
> you want the terminal to be. The terminal should then change to black, after
> you click somewhere
> else it will change to the color of the type of item connected to it.
> IE blue for a I32.
>

Just one correction. You use the wiring tool to connect the control
or indicator to the connector. If the icon connector is visible,
then a click with any tool will automatically change to the wiring
tool.

Greg McKaskle
0 Kudos
Message 4 of 6
(4,200 Views)
thanks everyone, that worked

torleiv

Greg McKaskle wrote:
>
> ...
> > Use the hand tool to click on the indicator (or control) and then click on
> > the box where
> > you want the terminal to be. The terminal should then change to black, after
> > you click somewhere
> > else it will change to the color of the type of item connected to it.
> > IE blue for a I32.
> >
>
> Just one correction. You use the wiring tool to connect the control
> or indicator to the connector. If the icon connector is visible,
> then a click with any tool will automatically change to the wiring
> tool.
>
> Greg McKaskle
0 Kudos
Message 5 of 6
(4,200 Views)
In article <387D0D99.BE8FB7DA@consumption.net>,
Torleiv Flatebo-Ringer wrote:

>I have found the way to add terminals to a subVI, but not how to link an
>indicator (in the subVI) to a terminal.

Put whatever kind of control/indicator you want on your diagram, hit tab
until you get to the wiring tool, highlight it with that, then go up to
the empty terminal on the SubVI icon, and click on it. I think that
should do it.

Harry

--
0 Kudos
Message 3 of 6
(4,200 Views)
Hello,

1. In the PANEL window, right click on the icon in the top right corner.

2. select "show connector"
3. with the "wire' tool selected click on a Terminal you would like to
assign to a indicator or control element.
4. Click on the element you would like to associate with the terminal you
have selected.

This should do the trick!.

The ONLINE REFERENCE, help section also explains the procedure, you will
find it in the INDEX tab of Online Reference, search for
'Connector Terminal Pattern,assigning Controls and Indicators'.

Hope this is of help

Torleiv Flatebo-Ringer wrote in message
<387D0D99.BE8FB7DA@consumption.net>...
>Hello, I am having a problem, and maybe I am going about it the wrong
>way...
>
>I am porting a C program to LabView. In the end it will be a mix
of
>LabView and C using a CIN node. THis is very time consuming, and I have
>40+ inputs to the C program. I would like to create a subVI with just a
>string output, then add inputs as needed. Is this possible?
>
>I have found the way to add terminals to a subVI, but not how to link an
>indicator (in the subVI) to a terminal.
>
>torleiv
0 Kudos
Message 6 of 6
(4,200 Views)