LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

VI linking

Solved!
Go to solution
I'm not sure what your level is, or what the problem is, so I'll begin at
the basics.

To pass values (of any type) to another VI, you have to connect the
indicators to the connector pane. Right click the vi icon in the top right,
and select Show Connector. You should always select the 4X4X4 connector
pane, with the Patterns option (again, right click the icon). In 8.5 this is
the default (I think since 8.0, but I'm not sure). Then, click any of the
little squares in the connector pane (the icon, but now it shows the grid),
and then one of the indicators on the front panel. Now, the VI has an
output. You can do the same with the second VI, only now select a control.
This becomes a new input of the VI. In a main VI, you can now connect the
two, if the two data types are the same.

One problem with your senario is that the user selects settings in a
control. To be able to pass the control values to another VI, you'll have to
create an indicator of each control you want to pass. Then connect the new
indicators to the connector pane, and you can pass the control values to the
next VI.

Another problem is that you might have several (related) values. You can
bundle them in a bundle or cluster, to save connectors. You'll find that it
pays off to make a strickt type def of those clusters, so you can change
them all at once.

Hope it help, just let us know where it goes wrong.

Regards,

Wiebe.


Message 11 of 16
(1,270 Views)

Hey!!

I'm using LV8.2 .cant open what you have made.Help?!?

tnx

 

0 Kudos
Message 12 of 16
(1,260 Views)

Here y'are.  Don't forget to answer the questions folks have asked; we can't help very well if we don't know what you've tried and the specific issues you're having.

 

Jim

Jim
You're entirely bonkers. But I'll tell you a secret. All the best people are. ~ Alice
For he does not know what will happen; So who can tell him when it will occur? Eccl. 8:7

Download All
0 Kudos
Message 13 of 16
(1,254 Views)

Thanks guys !

I did tried the subVi part .But i guess the global variable came out to be a better choice.

Thanks 

DeWalker

0 Kudos
Message 14 of 16
(1,209 Views)

***Did try****Smiley Indifferent
0 Kudos
Message 15 of 16
(1,208 Views)
Eventually, this will bite you...

Never use globals, if you can avoid it. They always can be avoided, so never
use them... But suit yourself.

Regards,

Wiebe.



0 Kudos
Message 16 of 16
(1,199 Views)