Hi,
My main program uses a while loop to get control data from subVIs until the subVIs are done executing. When I ran my main program, my CPU usage shot up to 100%, so I put a delay time inside of my while loop and this reduces the CPU usage to about 8-10%, but now the data array that comes out of my while loop is messed up. I don't get any data coming out at all. Can you help?
Hello Ann
Ok, I'm not sure if UI understood you right.
You have a while loop, with an subVI inside. Every iteration of the loop you get some data out of the subVI. You collect the data with the automatic indexing on the while loop.
Now you have put a time-delay insisde the while loop, so your subVI doesen't get called as fast as possible, but just some times per second.
Is this all correct?
Ok, now the questions are: what's your data-source? What does the subVI do? I think the Problem is there, that your subVI doesent return the correct data anymore, if it isn't called frequently enough.
Please tell us someting about your subVI and maybe someone can help.
Bye
Marco
