Adding Help in the Function Tree Editor
In this example, you will add instrument and function class help to a function tree. Complete the following steps to create a new instrument and function tree and add help to the function tree.
- Select File»New»Function Tree (*.fp).
- Select Create»Instrument.
- Enter Help Examples as the Name and help as the Prefix. Click OK.
- Select Create»Class.
- Enter Class 1 as the Name. Click OK.
- Select the line beneath Class 1.
- Select Create»Function Panel Window.
- Enter Function 1 as the Name and fun1 as the Function Name. Click OK.
- The first level of help is associated with the name of the instrument driver. Right-click Help Examples and select Edit Help to open the Help Editor.
- Enter the following help:
This driver was created to illustrate how to add help text to an instrument driver. - Select File»Save .FP File. Save the file as help.fp. Close the Help Editor window.
- Right-click Class 1 and select Edit Help.
- Enter the following text in the Help Editor.
An example function class. The functions in this class are the following:
Function 1--The only function in the class. - Save the .fp file and close the Help Editor.
Complete the following steps to view the help.
- Select Instrument»Help Examples. The Select Function Panel dialog box appears.
- Select Class 1 and click Help to open the Class Help window.
- Click Instrument Help to display the Instrument Help window.
- Click Done to exit the Instrument Help and Class Help windows.
- Click Cancel to exit the Select Function Panel dialog box.