Configuring Input and Output Parameters

You can use the Parameters tab to define input and output parameters for your approximation. If you previously created parameters for this component using either the Design Gateway or this editor, the parameters appear in the lists.

  1. Double-click the Approximation component icon .

    The Approximation Component Editor appears.

  2. From the Approximation Component Editor, click the Parameters tab.

  3. Perform any of the following options, which vary based on your model:

    1. Determine which parameters you want to use by selecting the corresponding check boxes in the first column. Alternatively, you can click Check to add all the selected parameters. To clear all the parameters, click Uncheck.
    2. If your parameters contain arrays, click the check box next to the array root to select all members of the array.

      If an Approximation component that uses resizable arrays was initialized at design time and the array dimensions changed at run time prior to executing the Approximation component, the Approximation component renders itself not initialized and will re-initialize. In this case it is expected that the data file contains all the new array elements; otherwise, the initialization fails because of missing parameters.

  4. If you have not already added parameters or you want to add new parameters, click Scan.

    All parameter names found on the first line of the data file are displayed in the table. You can select any number of parameters to use as inputs or outputs. You do not have to select all the parameters in the data file.

    1. Determine the input and output parameters:

      • Click the check boxes in the corresponding columns to choose individual parameters.
      • Click multiple parameters by selecting several rows in the parameter list and clicking Check and selected rows.

    2. Click OK to save your changes and to return to the Parameters tab

      The selected parameters are displayed as input or output parameters.

  5. Click OK to save your changes and to close the Approximation Component Editor.