Admin Production ni-theme
Current Publication

Recalling Function Panels

LabWindows/CVI

View»Recall Function Panel

Use the Recall Function Panel command to display the function panel corresponding to the call. Recall Function Panel not only finds and displays the panel but also sets the panel controls so that they contain the parameter values that appear in the function call. After modifying one or more controls, you can replace the original call with the modified call.

Selecting the Recall Function Panel Command

Before you select Recall Function Panel, you must indicate the function panel you want to recall. One method is to place the cursor on a line that contains a function call or a portion of a function call. You can select part of a line, provided that the part contains a function call.

If a line contains multiple function calls or one function call embedded within another, you can resolve the ambiguity by placing the cursor on or immediately after the function name.

After you indicate the function call, select View»Recall Function Panel. The function panel for that function appears, and the controls contain the parameter values from the call.

Recalling a Function Panel from a Function Name Only

You can recall a panel from a function name without specifying any of the parameters. If you place the keyboard cursor on or immediately after a function name, Recall Function Panel recognizes the function name even if a parameter list does not follow it. Thus, you can type a function name into the Source window and select Recall Function Panel.

Also, you can use the Find Function Panel command to open a function panel from a function name or a portion of a function name.

Multiple Panels for One Function

If the selected function appears in more than one function panel window, LabWindows/CVI displays a list of panels. Select one by highlighting the panel name and pressing <Enter> or by double-clicking the panel name.

Multiple Functions in One Function Panel Window

If the selected function matches a function panel window that contains multiple function panels, LabWindows/CVI attempts to match the panel to function calls on the lines surrounding the selected call. After the panel appears, you can check how many lines were matched to the function panel window by looking at the Source window. LabWindows/CVI highlights the matched lines.

If you select multiple lines before executing the Recall Function Panel command, all function calls in the selected lines must appear in one function panel window, and the order in which the window generates the calls must be identical to the order in which they appear in the selected lines. Otherwise, an error message appears.

Syntax Requirements for the Recall Function Panel Command

You do not need to compile the file before you invoke the Recall Function Panel command. In fact, the function call you select does not need to be syntactically valid. The only requirement is that you must spell and capitalize the name of the function correctly. If you do not spell and capitalize the function name correctly, LabWindows/CVI displays an error message indicating that the panel could not be found.