I tried to adapt the example model Model Based Design Approach to Motor Control with S32K144 - part No.1 from pachamatej to use with S12Z-evaluation board without success.
Motor Control Development Toolbox for MagniV S1... Version 1.3 (R2013a-R2015b)
Could you please take a look into the adapted model?
Well, the error is very strange, since in the Model Explorer the y variable is set to be uint32 but the output is double.
The workaround that I've found for this issue (I have only the R2015b installed so this is the version in which I've tested) is to convert in the state machines the y=0 to y=uint32(0);
This has to be performed also for the filter and offFilter variables for the others stateFlow.
Hope this helps,
many thanks for your reply! It works well.
Somehow the variable SpeedCommand is declared as "float".
I want to change to "uint16" but then build error without any useful informations from Diagnostic Viewer.
Could you please try it by yourself ?