Azzera filtri
Azzera filtri

Function Call Enabled Referenced Models with Temporal Timers

1 visualizzazione (ultimi 30 giorni)
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

Risposte (1)

Sebastian Castro
Sebastian Castro il 23 Apr 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

Categorie

Scopri di più su Simulink Functions in Help Center e File Exchange

Prodotti

Community Treasure Hunt

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

Start Hunting!

Translated by