LabWindows/CVI 2009 introduced the addition of a new custom progress bar for a more accurate visual representation of task advancement on the user interface. The custom progress bar control is loaded into an existing project as an instrument driver.
Adding a Custom Progress Bar for the User Interface:
You will notice that LabWindows/CVI automatically generates code to convert and configure the custom progress bar.
LabWindows/CVI will also add the progressbar.fp to your Workspace Instrument Files folder and includes needed Instruments under the Instruments Library.
You can set the position of the custom progress bar in two different ways:
There are three different modes that are available for specifying how to move the progress bar:
Examining the Open Source Driver:
Like other custom controls, the custom progress bar driver also performs a secondary role as an extended example of using the UI library, therefore it's an open source driver. You can examine and debug this open source code, which is located in toolslib\custctrl\progressbar.c. To step through the source code, select Instrument»Edit and then click Attach and Edit Source.
Additional Resources:
LabWindows/CVI 2009 includes a shipping Example to show you how to get started with the Custom Progress Bar. You can find this shipping example in the new examples workspace. This particular example can be found in C:\Users\Public\Documents\National Instruments\CVI2009\samples\userint\custctrl\progressbar.
Additional Information on the Custom Progress Bar control is available on the progress Bar in the CVI Help under Tools Library»Progress Bar Control
The LabWindows/CVI shipping example that uses the custom progress bar can be found here: C:\Users\Public\Documents\National Instruments\CVI2009\samples\userint\custctrl\progressbar.