Identifier "xxx" is undefined

From MotoHawk
Jump to navigationJump to search

Error: function " xxxxx" is undefined.

Ex. function "CylDeac_B01_IN_Rest" is undefined

This error can result when there is a Stateflow diagram in the model, depending on settings. Check whether the funtion "xxx" name is related to states in the stateflow diagram.

Workaround: Set each state (right click on the state) in the stateflow diagram to Inline, and set the Subsystem Parameter type to 'Function" instead of Auto (right click on Function-Call Subsystem and select Parameters.).