Asked by pouya jamali
on 29 May 2012

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?

Answer by Guy Rouleau
on 29 May 2012

Accepted 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.

pouya jamali
on 30 May 2012

Do you mean that system response using the ODE1 and the discrete are the same?

thanks dear

Anbu
on 31 Mar 2015

nivethitha p
on 12 Jun 2015 at 5:14

Opportunities for recent engineering grads.

## 2 Comments

## Kaustubha Govind (view profile)

Direct link to this comment:http://www.mathworks.com/matlabcentral/answers/39695#comment_82116

By "discrete mode", do you mean that you selected a Discrete Solver? Also, please paste the *exact* error message that you receive.

## pouya jamali (view profile)

Direct link to this comment:http://www.mathworks.com/matlabcentral/answers/39695#comment_82280

Yeah! The error message is : The "FixedStepDiscrete" solver cannot be used to simulate block diagram 'piddiscrete' because it contains continuous states

thanks for your support