LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

progress bar for section of code.

I understand that you can create a progress bar by using funtion panels in toolbox.fp. Say I have a section of code and I wish to have a progress bar track the progress of the execution of that section of code. Is there anyway to update the progress bar incrementally without having to insert a UpdateProgressDialog() function call after each lines of code? Is it possible for me to instead just update the progress bar automatically each time a line of code executes? Also, in the function panel CreateProgessDialog(), what is exactly is the parameter "Dialog is Modal". What does modal mean?? Thanks.
0 Kudos
Message 1 of 2
(3,003 Views)
No, there is no way to automatically update the progress bar. You have to tell it when to update with the UpdateProcessDialog. If you would prefer, you could create your own progress dialog that works however you want using a slider control on a panel. As for "modal" windows, modal windows are windows that behave like a notification dialog. They are on top of the main window and must be closed before returning to the main window. Modal dialogs are used to force the user to complete the action with the current window before moving on in the main window. Most dialogs in Windows such as file dialogs and details dialogs, are modal. Non-modal, or modeless, windows allow you to go back to the main window without closing them.

Best Regards,

Chris Matthe
ws
National Instruments
0 Kudos
Message 2 of 2
(3,003 Views)