LabWindows/CVI

Creating Classes in Function Trees

Use the Class command to add a new class to a function tree.

When you select the Class command, the Create Class Node dialog box appears. Enter the name that you want to appear in the Select Function Panel dialog box that opens when the user selects the instrument from the Instrument menu.

Adding a Class to an Empty Tree or Class

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

  1. In the Function Tree Editor, select Create»Instrument. Enter a name and a prefix and click OK.
  2. Select the line that contains Create Class or Function Panel Window.
  3. Select the Create»Class. The Create Class Node dialog box appears.
  4. Complete the Create Class Node dialog box. The class appears in the function tree window. The new class name takes the place of the Create Class or Function Panel Window message on the selected line.

Inserting a Class into an Existing Tree

In the function panel hierarchy, you can insert up to eight levels of classes. Complete the following steps to insert a class into a function tree.

  1. Select an existing function or class at the level you want to place the new class.
  2. Select Create»Class. The Create Class Node dialog box appears.
  3. Complete the Create Class Node dialog box. The new class is inserted on the line below the existing function or class. The class exists at the same level in the tree as the function or class that originally occupied the line.
Note  A function tree can contain a combination of up to 32,000 functions and classes.