Function Call Enabled Referenced Models with Temporal Timers

1 次查看(过去 30 天)
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

回答(1 个)

Sebastian Castro
Sebastian Castro 2015-4-23
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

类别

Help CenterFile Exchange 中查找有关 Simulink Functions 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by