04-17-2025 03:52 AM
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:
Here it is in another empty program for testing purposes:
Anything I missed?
Thank you for the help!
04-17-2025 04:16 AM
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.