I've run into the following error message from Simulink:
The block 'xyz/If Action Normal/In1' has a discrete sample time that does not match the sample time 0 of the If block 'abc' controlling its execution
My solver configuration is variable step/auto, and the environment could be seen at the end of this post.
I tried a few methods:
- try to locate the error by replacing/comment out blocks;
- try to change the port driving if-action block;
- try to remove all discrete blocks;
Any suggestion is highly appreciated.
If
block and theIf Action
subsystems that it feeds, must have the same sample times. In your case they currently do not. – Phil Goddard