From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
09-19-2013 02:18 PM - edited 09-19-2013 02:19 PM
If I have a for-loop with iteration parallelism enabled, is there a good method to update a progress bar without eliminating the potential speed boost? The naive approach of dividing the iteration terminal by the total number of iterations goes completely bonkers when I enable iteration parallelism.
Solved! Go to Solution.
09-19-2013 02:37 PM
09-19-2013 02:45 PM
I have a simple solution that I think I posted long ago. I'll try to dig it up....
09-19-2013 02:48 PM
@altenbach wrote:
I have a simple solution that I think I posted long ago. I'll try to dig it up....
09-19-2013 02:53 PM
09-19-2013 03:01 PM - edited 09-19-2013 03:06 PM
Thank you all for the quick responses. I had the FGV in mind when I asked this question but I had some doubts about using it because it is a shared resource. Won't the blocking nature of the non-reentrant FGV have a pretty big impact on the speed-boost provided by the iteration parallelism?
09-19-2013 03:07 PM
Hi Sean,
a simple FGV like the one presented here will need a microsecond to process. Drawing the progress bar on the front panel takes significant more time.
How much time does your computation need per iteration? It's just a matter of proportions...
09-19-2013 03:13 PM
@SeanDonner wrote:
Thank you all for the quick responses. I had the FGV in mind when I asked this question but I had some doubts about using it because it is a shared resource. Won't the blocking nature of the non-reentrant FGV have a pretty big impact on the speed-boost provided by the iteration parallelism?
Well, if the computation is fast, you don't need a progress bar. If the computation is slow, the overhead from the FGV is negligible. It executes very fast and in parallel to the code in the loop. It won't be blocking anything in any significant way.
09-19-2013 06:03 PM
All good points, thanks for the help