Admin Production ni-theme
Current Publication

Editing Instrument Drivers

LabWindows/CVI

Instrument»Edit

You can use the Edit command to edit an instrument driver program in a Source window or edit an instrument driver function tree in the Function Tree Editor. When you select the Edit command, the Edit Instrument dialog box appears.

The dialog box displays instrument drivers you loaded as part of the project or through the Instrument menu. The Edit Instrument dialog box contains the following commands:

  • Show Info—Displays the names of the current function panel file and the attached program file. This command also shows whether these files are in the current project and if the program file is compiled. The attached program file contains the functions that are called when users operate the function panel.
  • Attach and Edit Source—If a .c file with the same base name as the selected .fp file exists in the same directory as the .fp file, LabWindows/CVI loads, compiles, and attaches the .c file as the instrument driver program file. The .c file opens in a new Source window. If the file is not found, LabWindows/CVI prompts you to create a new source file.
  • Detach Program—Detaches the instrument driver program file from the .fp file.
  • Reattach Program—Detaches the current instrument driver program file, if any, from the .fp file. LabWindows/CVI then reloads a program file using the rules outlined in Precedence Rules for Loading the Instrument Driver Program File.
  • Edit Function Tree—Displays the function tree for the selected .fp file.
  • Deploy—Copies edited instrument driver files to their original file location.

    This option is similar to the Deploy Instrument context menu item you can access by right-clicking the instrument driver in the Library Tree.
Note Note  If you copy files to a directory with write access and do not copy or deploy the instrument driver files back to their original location, you must update the path to the instrument driver in all applications that use the driver to point to the edited files in the directory with write access.
  • Done—Closes the Edit Instrument dialog box.