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
<S41> Reusable Function Reusable Function(S41) normal
<S39> Reusable Function Reusable Function(S41) normal
<S38> Auto Reusable Function(S38) normal
<S34> Auto Reusable Function(S38) normal
<S33> Reusable Function Reusable Function(S33) normal
<S53> Reusable Function Reusable Function(S53) normal
<S62> Reusable Function Reusable Function(S62) normal
<S58> Reusable Function Reusable Function(S62) normal
<S85> Reusable Function Reusable Function(S85) normal
<S14> Auto Inline normal
<S16> Auto Inline normal
<S15> Auto Inline normal
<S8> Auto Inline normal
<S18> Auto Inline normal
<S17> Auto Inline normal
<S21> Auto Inline normal
<S25> Auto Inline normal
<S30> Auto Inline normal
<S26> Auto Inline normal
<S27> Auto Inline normal
<S37> Auto Inline normal
<S36> Auto Inline normal
<S35> Auto Inline normal
<S57> Auto Inline normal
<S56> Auto Inline normal
<S69> Auto Inline normal
<S82> Auto Inline normal
<S83> 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