08-13-2007 03:20 PM
08-13-2007 03:38 PM
The numeric in subvi.vi will only update once subvi2.vi completes because you have them both in the same loop. They will both start running at the same time, but since the subvi with the for loop will take 20 seconds to complete, the indicator on the other subvi will only update to 3 once the next iteration of the loop begins. I'm not exactly sure what it is you are trying to accomplish with this code, but it is doing exactly what I would expect it to do.
If you want the indicator in subvi.vi to update every 5 seconds and show you each number 0,1,2,3, you will have to put it in a separate loop so that it runs more than once during the 20 seconds it takes the other VI to complete.
08-13-2007 09:16 PM