Effacer les filtres
Effacer les filtres

Function Call Enabled Referenced Models with Temporal Timers

1 vue (au cours des 30 derniers jours)
Kyle
Kyle le 22 Avr 2015
Is there a way to use Absolute-Time temporal logic within a function call enabled reference model?
I am currently getting the error listed below
"This model will not inherit a sample time because 'Child_Timer1/Timer2/ SFunction ' uses absolute time.
If this model does not need to inherit a sample time, change the "Sample time constraint" to something other than "Ensure sample time independent" on the Solver tab of the Configuration Parameters dialog."
Using Matlab 2012b on win 7 32bit

Réponses (1)

Sebastian Castro
Sebastian Castro le 23 Avr 2015
Not 100% sure about this one, but the only workaround I can think of is to feed a Clock block as an input to the Stateflow chart.
This way, when the chart wakes up due to the function-call, you can at least poll the value of the input (clock signal) at that time.
- Sebastian

Catégories

En savoir plus sur Simulink Functions 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