LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do i merge these two VI's--PLZ HELP

HI,
     I am fairly new to Labview.I created two separate VI's.How can i merge them?In my Arc_Project vi i have a tank 3 where sample is collected.After 5 mins the loop will stop and the sample collected from tank 3 will be drained out to Interim Storage.
In the second Vi-Spatial Logic.vi all the five tanks drain the sample to Interim Storage too.How do i add the volume drained from VI 1 and V1 2.

Plz help.Thank you for your time..
Download All
0 Kudos
Message 1 of 3
(4,424 Views)
 

Have you tried making one of the VI's a SubVi of the other?  If you havent', this link should help:

 

https://www.ni.com/docs/en-US/bundle/labview/page/creating-subvis-from-sections-of-a-vi.html

Good luck.

Ali

0 Kudos
Message 2 of 3
(4,403 Views)
Ahh, you guys are all blessed with gigantic monitors! Look at that front panel!!! 😮
 
To answer your question, SubVIs is the way to go.
 
While you're at it, you should clear up some misconceptions you seem to have about "local variables". A local variable just points to the same front panel object, so reading an indicator via a local variable and then immediately writing that value back to the same indicator is useless. Nothing will change! What you labeled "Main loop" servers no purpose. Keep the terminals of the indicators and delete the rest! Same with the chart loop! 🙂
 
You do way too many duplicate operations. For example you multiply five different wires with 0.1, using 5 diagram constants of 0.1. One would be enough! If you would multiply the headwater-tailwater difference with 0.1, you would do all in one operation and could eliminate all these other 0.1 multiplications. same result!
 
See here for details:
0 Kudos
Message 3 of 3
(4,378 Views)