From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

transfer sub VI node info to Main VI

Solved!
Go to solution

Hello,

 

How can I go about getting the sub VI scale information for the tank to also show up in the Main VI.  

 

When the input goes to below 60, the scale on the tank changes in the sub VI but not in the Main VI.  

 

Any help will be greatly appreciated.

 

Thanks,

hiNi.

0 Kudos
Message 1 of 3
(2,461 Views)

You need to pass a reference to the main.vi indicator to manipulate that objects scale properties.

 

And let's code it once shall we?  No need to put identcal property nodes in each case.

subVI_BD.png


"Should be" isn't "Is" -Jay
Message 2 of 3
(2,457 Views)
Solution
Accepted by topic author hiNI

What's the purpose of the while loop inside the subVI? Doens't seem to do anything useful.

Why do you pipe the slide value into the subVI, across the case structure, and back out unchanged? Seems pointless.

 

Here's all you need. No while loop in the subVI!

 

(In principle, you don't even need to write the scale.minimum, because it never changes. I left it in case you want to expand the functionality in the future.)

 

 

Download All
Message 3 of 3
(2,433 Views)