# Progress Bar

**URL:** <https://forum.inductiveautomation.com/t/progress-bar/1130>\
**Category:** Archived Topics\
**Created:** [May 2, 2009, 7:47pm UTC](https://forum.inductiveautomation.com/t/progress-bar/1130 "2009-05-02T19:47:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Step7](https://avatars.discourse-cdn.com/v4/letter/s/45deac/32.png) [@Step7](https://forum.inductiveautomation.com/u/Step7)\
**Post date:** [May 2, 2009, 7:47pm UTC](https://forum.inductiveautomation.com/t/progress-bar/1130/1 "2009-05-02T19:47:36Z")

</div>

I would like to use a progress bar to show the user that something is happening. I’m opening up and reading a slew of files, and this takes about five seconds. As I rip through the files, I would like to update the progress bar accordingly.

How would I go about this? I have looked at the invokeAsynchonous function, but I don’t see how I would get feedback back to the progress bar on each file iteration. In wxPython, I use the wxYield function; is there something similar I can use in FPMI?

---

<div class="post-metadata">

**Author:** ![Carl.Gould](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/carl.gould/32/7262_2.png) [@Carl.Gould](https://forum.inductiveautomation.com/u/Carl.Gould)\
**Post date:** [May 3, 2009, 9:45pm UTC](https://forum.inductiveautomation.com/t/progress-bar/1130/2 "2009-05-03T21:45:34Z")

</div>

Sure, you can have a function that you run using invokeAsynchronous, and pass to it a reference to a progress bar component. Then use invokeLater’s to update progress bar (updates to the progress bar shouldn’t come directly from a background thread - invokeLater’s will get processed on the GUI thead)
