Developing and Running a Program
You might want to use the following pattern
to develop your projects in LabWindows/CVI:
- Open a User Interface Editor window and design a user interface for the
program. You can use one of the sample projects packaged with LabWindows/CVI
as the basis for the interface.
- Assign constant names or callback functions to each control on the GUI.
- Save your GUISave your GUI as a user interface (.uir) file.
LabWindows/CVI automatically generates a corresponding include (.h) file.
- Use CodeBuilderCodeBuilder to create skeleton code for your source file.
- Edit the skeleton code that CodeBuilder generates. Add code to the callback
functions so that they respond appropriately to user interface events.
- Add the source code (.c), include (.h), and user interface (.uir) files to your project list and save the project (.prj) file.
 |
Note Whenever you modify the .uir, you must recompile so that that LabWindows/CVI can update the .h file as necessary.
To make this kind of recompiling automatic, enable Track include file dependencies
in the Build OptionsBuild Options dialog box of the Workspace window. |
 |
Note If you do not pass absolute pathnames for .uir files to
functions such as LoadMenuBar or
LoadPanel, the .uir files must be in the
same directory as your executable. |