Why do I get an 'inconsistent sample time' error when using an S-function generated from a subsystem in Simulink?

12 vues (au cours des 30 derniers jours)
I receive an 'inconsistent sample time' error when using an S-function from a subsystem. I changed input signal sample time of original Subsystem.

Réponse acceptée

MathWorks Support Team
MathWorks Support Team le 28 Mar 2013
This is the expected behavior in Real-Time Workshop. When a subsystem with a This is the expected behavior in Real-Time Workshop. When a subsystem is built using S-Function target, its sample time is hardcoded, based on the final time of the model and number of steps.
To work around this issue, you can either explicitly set the sample time, or place in a subsystem.

Plus de réponses (0)

Catégories

En savoir plus sur Simulink Coder dans Help Center et File Exchange

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by