필터 지우기
필터 지우기

Function Call Enabled Referenced Models with Temporal Timers

조회 수: 1 (최근 30일)
Kyle
Kyle 2015년 4월 22일
답변: Sebastian Castro 2015년 4월 23일
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