LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

indicators inside for loop does not display value in Main VI

Solved!
Go to solution

I don't have Vision installed on my dev computer so I can't show a proper screenshot.

 

Basically you want your subVI to take a control reference for output array and a control reference for Image as it's input.

Inside your subVI, you'll write to the control references. Every time you write to the control reference in your subVI, the changes will be reflected in your Main VI.

Something like this:

ControlRefExample.png

Except you should also have a Image Ctrl Reference going into your subVI.

 

Message 11 of 14
(1,197 Views)

Use a Queue or Notifier to get values from a running subVI, references with property nodes can be problematic, do not go that way.

Message 12 of 14
(1,195 Views)

Can you also attach the screen shot of Subvi block diagram also. Just the main part is enough.

 

Many thanks 

0 Kudos
Message 13 of 14
(1,179 Views)

Blokk is right that this is almost certainly the wrong way to do this.

ControlRefExample.png

Your subVI is going to have elements like this.

 

Really though, go back and read the whitepaper.

Message 14 of 14
(1,172 Views)