Creating a Function Tree with Multiple Classes
- Updated2023-02-21
- 1 minute(s) read
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.
- Select Create»Instrument.
- Enter Function Tree Examples as the Name and tree as the Prefix. Click OK.
- Select Create»Function Panel Window.
- Enter Function 1 as the Name and fun1 as the Function Name. Click OK.
- Select Create»Class.
- Enter Class 1 as the Name. Click OK.
- Select Create»Function Panel Window.
- Enter Function 2 as the Name and fun2 as the Function Name. Click OK.
- Select File»Save .FP File As and save the file as multclass.
- 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.