LabWindows/CVI

Content Type
Programming Language
Current manual

Developing and Running a Program

Developing and Running a Program

You might want to use the following pattern to develop your projects in LabWindows/CVI:

  1. 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.
  2. Assign constant names or callback functions to each control on the GUI.
  3. Save your GUISave your GUI as a user interface (.uir) file. LabWindows/CVI automatically generates a corresponding include (.h) file.
  4. Use CodeBuilderCodeBuilder to create skeleton code for your source file.
  5. Edit the skeleton code that CodeBuilder generates. Add code to the callback functions so that they respond appropriately to user interface events.
  6. Add the source code (.c), include (.h), and user interface (.uir) files to your project list and save the project (.prj) file.
Note 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 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.
Was this information helpful?