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