ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

using shared variable data binding

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?

Download All
0 Kudos
Message 1 of 2
(2,832 Views)

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

 

Joe Daily
National Instruments
Applications Engineer

may the G be with you ....
0 Kudos
Message 2 of 2
(2,811 Views)