MATLAB: Running simmechanics in discerete mode

simmechanicsSimscape Multibodysimulink

Is it possible to simulate a Simmechanics model in discrete mode?I tried to do that but Simulink showe me an error that there is a continues state in the block diagram but there isn't! What is the problem?Any one has any idea?

Best Answer

SimMechanics requires a continuous solver. The solver can be variable or fixed step.
The fixed-step solver closest to discrete is ODE1. Since it has no minor time steps, it is almost equivalent.
If this does not do the job for your application, please let us know why.