Defining Mappings

You map actions to pass information to and to retrieve information from MATLAB. A single mapping action can involve mapping more than just one parameter to/from MATLAB. To define a mapping, you need to specify the Isight parameter and the MATLAB variable name involved in the mapping.

(If you have not already added an action, see Adding Actions.)

Related Topics
About Adding Parameters
  1. Double-click the MATLAB component icon .

    The MATLAB Component Editor appears.

  2. From the MATLAB Component Editor, click the Contents tab.

  3. Select the desired mapping-type action from the Initialize, Execution Order, or Finalize subtabs.

    An area for defining the mappings appears on the right side of the editor.

    You can edit the name used to identify the action in the Mappings text box.

  4. Click the down-arrow to select an existing Isight parameter from the parameter list (below the Mappings text box).

    You can enter the name of a new parameter in the text box to create a new parameter.

    Note: If you enter the name of a new parameter, the MATLAB component creates a scalar parameter of type “real.” If you want to define a new parameter that is not a scalar “real” parameter, click the button to create a new Isight parameter.

    You can sort the parameters in the list by component. Right-click in the list, and select Group Parameters. The setting is saved as a preference for this component. You can use the Preference option to set the initial default for this option for all applicable component editors. You can also choose to not group parameters for the selected component. For more information about these Preference options, see Setting Parameter Preferences in the Isight User’s Guide.

  5. Click the button to select a mapping direction:

    • . Represents a mapping from the Isight parameter to the MATLAB variable.

    • . Represents a mapping to the Isight parameter from the MATLAB variable.

  6. Click the button to add a parameter.

    A row appears in the mapping table containing the Isight parameter, the mapping direction (indicated by an arrow), and the name of the MATLAB variable. For more information about adding parameters, see About Adding Parameters.

    You can click the button to delete a mapping.

  7. Click OK to save your changes and to close the MATLAB Component Editor.