Borrar filtros
Borrar filtros

Function Call Enabled Referenced Models with Temporal Timers

1 visualización (últimos 30 días)
Kyle
Kyle el 22 de Abr. de 2015
Respondida: Sebastian Castro el 23 de Abr. de 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

Respuestas (1)

Sebastian Castro
Sebastian Castro el 23 de Abr. de 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

Categorías

Más información sobre Simulink Functions en Help Center y File Exchange.

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by