Why do i receive error as invalid sample time in periodic subsystem(R2012b)?

I am using a periodic subsystem in my simulink model. I am running the model with 50e-6 sample time and i want to run this particular subsystem at 1e-3 sample time. As soon as i change the sampletime of subsystem from '-1' to '1e-3', simulink is throwing the error saying 'Your model has an invalid sample time of 5e-05. Periodic atomic subsystem may contain only blocks that have constant (inf), inherited (-1), or periodic (0.001) sample times'. After this I checked the sample time of each block inside said automic subsystem, every block has '-1' (inherit) sample time. Still I am getting this error. please help.

3 Comments

I am afraid i cannot share the whole model. I can share the snapshot.
please find attached generalised model. open the general_model.mdl file

Sign in to comment.

 Accepted Answer

error is occurring because parent subsystem was automic subsystem. You cannot have automic subsubsystem inside an already automic subsystem.

More Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!