Pierpaolo Cira
Pierpaolo Cira

Reputation: 1477

Simulink and SIL error due to unsupported continuous sample time

I have a 3 simulink models: the first is used as multiple-instance component inside the second; the second is a component inside the third (the third one is just used for testing purpuse and inkect test stimuli on the second).

If I simulate my model in "Normal" way all works fine. If I set my HW configuration (ARM Cortex) and try to run it in "SIL" mode it doesn't work because "The component has an unsupported continuous sample time. Input and output ports with continuous sample times are not supported. To avoid this error you should update the component so that there are no continuous sample times crossing its boundary."

Same error also trying to simulate the first model (the inner one).

Do you have an idea to solve my problem?

Thank you.

Upvotes: 1

Views: 3549

Answers (1)

am304
am304

Reputation: 13876

Yes. Use discrete sample times, not continuous ones. You can display the sample times in your model to see which ones are continuous and you need to change, see the documentation for more details.

Upvotes: 2

Related Questions