This example shows how to implement a progress bar by calling a VI dynamically. The example generates 3000 random numbers and a progress bar shows how far the generation has advanced. The progress bar is implemented with three subVIs that launch, update, and then close the progress bar. This set of VIs is useful in large applications where progress bars may be required in different components of the application. A custom message can be provided for the progress bar in each case.
Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.