LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Why is the Programmer's Toolbox Progress Bar so slow?

I have a program that reads a couple of files, performs some processing, and writes a result file back out. On the read, processes, and write functions there's a little progress bar that shows the percentage complete. I hadn't discovered the Programmer's Toolbox progress box, so the initial code uses a simple little progress bar that creates a popup panel with a slider, updates it every so often in the loop, and discards it. I found the Programmer's Toolbox version and installed it (passing a '0' to disconnect the abort button, as per instructions) - the code slowed down by a factor of 5! It's called in the same place with the same values (0 to 100), I just plugged in one call for the other. Neither box is modal, and as far as I can tell they should both operate in pretty much the same way. Huh?
 
Paul
0 Kudos
Message 1 of 2
(3,154 Views)
Hi pblase,

I made a simple program that uses the Programmer's Toolbox Progress Bar.  In my loop I just have a Delay of one second and UpdateProgressDialog().  I loop 10 times.  I timed my loop and It takes my loop 10 seconds to execute.  So, I am not seeing this slow down you are describing.

What version of LabWindows/CVI are you using?
Kristen
National Instruments
0 Kudos
Message 2 of 2
(3,124 Views)