LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to use a vi inside another vi

Solved!
Go to solution

Hi friends,

I am using a vi that uses another vi inside it. I made some changes inside the second vi that is inside the main vi. My problem is that the changes I made in the second vi doesn't show up in the main vi.

I have attached both vi's below.

Main vi is named : staticMeasurementWithPre-NullingNEW.vi

second vi that is inside this is: forces summation_Yuki.vi

 

I added LC-5 nulling, LC-6 nulling, LC-5 Loaded, LC-6 Loaded, S and My in forces summation_Yuki.vi

But I am not able to see corresponding terminals when I access this vi in the main vi staticMeasurementWithPre-NullingNEW.vi

I am using LabView 8.6.

Would you please see into it.

Thanks

Download All
0 Kudos
Message 1 of 7
(5,746 Views)
Solution
Accepted by topic author KumarR

Hi Kumar,

 

I would suggest to do some basic LV training...

 

After doing so you should know, what a connector pane is and how to connect controls/indicators to it. Then you should also have learned, that using the max connector number isn't the recommended way (as you could connect upto 28 in/outputs). Just adding controls on the frontpanel doesn't make them availabe to the main vi...

 

I would suggest grouping your inputs in arrays (all those LC-x values could go in an array) and clusters (all those Mx, a/b and L/S/T could go in their cluster). That way you would have 2 or 3 inputs and just 2 outputs. Using clusters you could easily access the content with an UnbundleByName node...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 7
(5,736 Views)

Yes Making cluster is suggested I have attached the VI there i have used the cluster. In the Main VI you can un bundle it and use it.You can take it as an example.

 

Smiley Wink

-----

The best solution is the one you find it by yourself
Message 3 of 7
(5,730 Views)

Hi Kumar,

 

I would ditto what GerdW said, you would benefit in the long run if you done training, this way you will be more adept are creating more complex vi's in the future.

Try running through some of the tutorials we provide online. They are extremely helpful.

Regards,

John McLaughlin
Academic Account Manager
National Instruments UK & Ireland
Message 4 of 7
(5,728 Views)

Thanks a lot,

This solved my problem. I appreciate your time.

Rajeev

0 Kudos
Message 5 of 7
(5,649 Views)

Thanks a lot for help..

0 Kudos
Message 6 of 7
(5,647 Views)

John,

I value your advice. And your suggestion solved my problem.

Thanks

 

0 Kudos
Message 7 of 7
(5,646 Views)