# Non-virtual subsystems in PMSM_Controller

### 1. Code Mapping [hide]

The following table:

- provides a mapping from the non-virtual subsystems in the model to functions or reusable functions in the generated code and
- notes exceptions that caused some non-virtual subsystems to not reuse code even though they were assigned a function packaging setting ('Function packaging' entry on the Subsystem Block Dialog) of 'Auto' or 'Reusable function'.

Subsystem | Reuse Setting | Reuse Outcome | Outcome Diagnostic
--- | --- | --- | ---
<S24> | Auto | Reusable Function(S24) | normal
<S33> | Auto | Reusable Function(S24) | normal
<S47> | Reusable Function | Reusable Function(S47) | normal
<S75> | Reusable Function | Reusable Function(S47) | normal
<S81> | Reusable Function | Reusable Function(S81) | normal
<S90> | Reusable Function | Reusable Function(S90) | normal
<S91> | Reusable Function | Reusable Function(S90) | normal
<S99> | Auto | Reusable Function(S99) | normal
<S106> | Auto | Reusable Function(S99) | normal
<S116> | Auto | Reusable Function(S116) | normal
<S120> | Auto | Reusable Function(S116) | normal
<S11> | Auto | Inline | normal
<S9> | Auto | Inline | normal
<S8> | Auto | Inline | normal
<S23> | Auto | Inline | normal
<S25> | Auto | Inline | normal
<S27> | Auto | Inline | normal
<S26> | Auto | Inline | normal
<S16> | Auto | Inline | normal
<S28> | Auto | Inline | normal
<S32> | Auto | Inline | normal
<S29> | Auto | Inline | normal
<S55> | Auto | Inline | normal
<S72> | Auto | Inline | normal
<S73> | Auto | Inline | normal
<S79> | Auto | Inline | normal
<S80> | Auto | Inline | normal
<S62> | Auto | Inline | normal
<S85> | Auto | Inline | normal
<S86> | Auto | Inline | normal
<S97> | Auto | Inline | normal
<S104> | Auto | Inline | normal
<S110> | Auto | Inline | normal
<S111> | Auto | Inline | normal
<S1> | Inline | Inline | normal

### 2. Code Reuse Exceptions [hide]

The following section provides details on each exception that caused a non-virtual subsystem with a function packaging setting of

- 'Auto' to become an inlined code segment,
- 'Auto' to become a non-reusable function without arguments, or
- 'Reusable function' to become a non-reusable function without arguments.

Note:This section does not report graphically identical non-virtual subsystems marked as 'Auto' that were not reused due to differences in their functional properties (such as dimensions, datatypes, work vectors, parameters, etc.). You may identify reasons for non-reuse in such cases by inspecting the differences in the functional attributes of the subsystems in the model or in the inlined generated code.

No reuse exception in model