Adding a Parameter to a Command
Use a Write step to add an input parameter to an instrument command. The parameter becomes an input to the VI or function.
Complete the following steps to add a parameter to a command.
- Select the command in the Enter a command text box and click the Add parameter button to add a parameter to a command. You also can select and right-click the command, and select Add parameter from the shortcut menu.
Note If you want to reuse a parameter from a previous command, you can right-click a command and use Link to input from the shortcut menu to create a new instance of a parameter you entered previously. You also can copy a parameter from a previous command by selecting the parameter and pressing the <Ctrl-C> keys. You can paste the parameter into a new command by pressing the <Ctrl-V> keys. |
- Enter a default value for the parameter in the Test value text box.
- Enter a name for the parameter in the Parameter name text box. You use this name to reference the parameter in the application.
- To change the data type of a parameter, click the parameter and select a new data type from the Data type pull-down menu.
You can remove a parameter by right-clicking the value and selecting Remove Parameter from the shortcut menu. You also can remove all parameters by clicking the Clear all parameters button.