LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Cannot output data from sub vi

I made this sub vi that iterates through a 1D array at fixed time intervals. I need it to output temperature commands from a temperature profile. When I run the standalone VI it works perfectly. When I use it as a sub VI in another program's block diagram, it doesn't output values. What should I do?

Here it is on its own:

bobengineer2_0-1744879812328.png

Here it is in another empty program for testing purposes:

bobengineer2_1-1744879860709.png

Anything I missed?

Thank you for the help!

0 Kudos
Message 1 of 2
(73 Views)

The VI returns its data when it's done running.

 

In your case, the VI will stop running when the for loop (with the wait) is done iterating.

 

You can see this if you click the highlight execution in the main and\or the SubVI.

 

See if the SubVI works as expected if you wire a 0 to the N of the for loop...

 

That seems to be the problem. If you agree, we can talk solutions.

0 Kudos
Message 2 of 2
(61 Views)