02-17-2015 03:50 PM
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.
Solved! Go to Solution.
02-17-2015 04:07 PM - edited 02-17-2015 04:08 PM
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.
02-17-2015 06:09 PM - edited 02-17-2015 06:12 PM
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.)