09-07-2010 04:43 PM
I'm trying to show the progress of writing 9 different files simultaneously. HostDownload.vi calls HostFileWrite.vi (a reentrant VI) 9 times in parallel. I would like the the total number of loop iterations and current iteration, within HostFileWrite.vi, to be displayed for each file on a front panel indicator on HostDownload.vi (better yet, the top level VI). I thought to use shared variable data binding, but that will only give me the current iteration. How can I set the Scale.Range.Max property for each indicator to total number of loop iterations? Could I make use of the Scale property for the shared variable? If so, how?
09-08-2010 04:09 PM
Hi Faustina,
I looked over your code and you might want to take a look at parrallel for loops. It would simplfy your code great.
You set the Scale.Range.Max correctly but did not call in a loop so it would continue to update. As for you shared variable question this is a perfect use case. I also recommend just sharing the value over shared variables.
Hope all this helps