LabWindows/CVI

Creating a Function Tree with Multiple Classes

In this example, you create a function tree with nested classes. Before beginning, select File»New»Function Tree (*.fp) to invoke the Function Tree Editor.

Complete the following steps to create a new instrument and function tree.

  1. Select Create»Instrument.
  2. Enter Function Tree Examples as the Name and tree as the Prefix. Click OK.
  3. Select Create»Function Panel Window.
  4. Enter Function 1 as the Name and fun1 as the Function Name. Click OK.
  5. Select Create»Class.
  6. Enter Class 1 as the Name. Click OK.
  7. Select Create»Function Panel Window.
  8. Enter Function 2 as the Name and fun2 as the Function Name. Click OK.
  9. Select File»Save .FP File As and save the file as multclass.
  10. To view the structure of the function tree as it is seen by the instrument driver user, add the instrument to the project by selecting File»Add .FP File to Project. Double-click multclass.fp in the Project Tree in the Workspace window.