Current Publication

Creating Function Panel Windows

LabWindows/CVI

Create»Function Panel Window

Select Create»Function Panel Window to add a new function to a function tree. The Function Panel window is a collection of panels that represents all functions that users can interactively call from that window.

When you select the Function Panel Window command, the Create Function Panel Window Node dialog box appears. Enter the following information:

  1. In Name, enter the name that you want to appear in the Function Panel Selection dialog box when the instrument is chosen from the Instrument menu.
  2. In Function Name, enter the actual code name used in the instrument driver for the function being added. This function name must be valid for the current language.
    Note  The name of every function in an instrument driver begins with a common prefix taken from the name of the instrument driver. Do not enter the prefix of the function name in the Create Function Panel Window Node dialog box. LabWindows/CVI automatically adds the prefix to each function name. To specify the prefix, select Edit»Node when you select the instrument node.
  3. In Qualifier, enter the default qualifier that provides information to LabWindows/CVI about access options and conventions. This qualifier overrides the default qualifier specified for the instrument. This option is not available if you select the CVI 5.0.1 and later option as the Default Format for New Files in the FP File Format dialog box.

    Example: Many instrument drivers use the _VI_FUNC macro as the function qualifier. The _VI_FUNC macro is defined in the visatype.h include file. The definition of the _VI_FUNC macro varies based on the target operating system and application development environment.

Adding a Function to an Empty Tree or Class

Complete the following steps to add a function to an empty tree or class.

  1. Select the line that contains Create Class or Function Panel Window.
  2. Select Create»Function Panel Window. The Create Function Panel Window Node dialog box appears.
  3. Complete the Create Function Panel Window Node dialog box. The new function name appears in place of the Create Class or Function Panel Window message on the selected line.

Inserting a Function into an Existing Tree

Complete the following steps to insert a function at any level in an existing function tree.

  1. Select an existing function or class at the level you want to place the new function.
  2. Select Create»Function Panel Window. The Create Function Panel Window Node dialog box appears.
  3. Complete the Create Function Panel Window Node dialog box. The new function is inserted on the line below the existing function or class. The function exists at the same level in the tree as the function or class that originally occupied the line.