Scan Model <Model Name> for Inputs/Outputs

Models step > Input Mapping area > Scan Model

The Scan Model <Model Name> for Inputs and Scan Model <Model Name> for Outputs windows contain the following elements:

Table

The columns and their meaning:

  • Create Mapping

    If activated, the mapping is created when you close the window with Add Mappings or Replace Mappings.

  • MOCA Name

    • for inputs:

      Shows the imported data columns and the nodes from the function. An automatic name matching is done.

      If desired, you can use the drop-down list to map a different MOCA parameter to the Simulink input.

    • for outputs:

      Shows the MOCA names of Simulink outputs and ToWorkspace blocks.

  • Simulink Port

    Shows the port type and the Simulink block name. Available port types are:

    • for inputs: Inport <i>, FromWorkspace, LCInport
    • for outputs: Outport <i>, ToWorkspace, LCOutport
  • Type

    Shows one of four different supported types: Scalar, Vector, Bus and Scalar + Time.

    Consider looking at the example project <installation>1\Example\Torque_ExtendedSimulinkExample.moca, to see all supported inport/outport types.

  • Dimension

    Shows the dimension of the Simulink input element.

  • Qualifier 1

    For scalar inputs/outputs, this column is empty.

    For vector inputs/outputs, this column contains the element position in the vector.

    For bus inputs/outputs, this column contains the name of the bus element.

    For From Workspace inputs or To Workspace outputs, this column contains the name of the block.

  • Qualifier 2

    For scalar, vector and bus inputs/outputs, this column is empty.

    For From Workspace inputs or To Workspace outputs, this column is empty or contains the element position in the vector or contains the name of the bus element, depending on the nature of the From Workspace or To Workspace block.

  • Name Hint

    Information derived from a connection line to a Simulink in-/output. The signal name is compared to the names in the MOCA project; matches are used for automatic mapping.

(De)Activate All

Activates/deactivates all options in the Create Mapping column.

Add Mappings

Adds the selected mappings to the Simulink Inputs/Outputs Mapping list. Existing entries in that list are kept.

Replace Mappings

Removes any existing entries in the Simulink Inputs/Outputs Mapping list and adds the selected mappings.

Cancel

Closes the window and discards the settings.