I am getting the following error
'MyTopLevelModel/SubsystemA/Model' has multiple sample times. Only constant (inf) or inherited (-1) sample times are allowed in function call subsystem 'MyTopLevelModel/SubsystemA'.
More info of my setup
SubsystemA has a function call which has a trigger port connected to a port set as "output function call with sample time of 0.001. All my other blocks have sample time -1 (inheritet).
If I go to the model explorer the compiled sample time are not [-1 0] some of the have set the [0.001 0]
Any idea what could be causing this error ?

댓글 수: 3

Birdman
Birdman 2019년 2월 20일
Can you share the model?
ricard molins
ricard molins 2019년 2월 20일
Can't share the model. Thats the reason I am asking for guidance of where could the potential error be and not a specific solution to my issue.
To identify which block(s) have a different sample time goto Display ->Sample TImes -> Colors.

댓글을 달려면 로그인하십시오.

 채택된 답변

ricard molins
ricard molins 2019년 2월 22일

1 개 추천

The problem was that a configuration reference had a time step set to 0.01. This time step was transformed into a CompiledTimeStep and therefore it set a CompiledTimeStep different to -1 or inf. Setting the time step to auto solved the issue.

추가 답변 (2개)

dc
dc 2023년 4월 23일

0 개 추천

it is very puzzle;you need configure the function call ‘s sample time in the runnable/system;i mean the display of f() . do not configure reference
dc
dc 2024년 9월 10일

0 개 추천

please set the function trigger's sample time to you need

카테고리

제품

릴리스

R2016a

태그

질문:

2019년 2월 20일

답변:

dc
2024년 9월 10일

Community Treasure Hunt

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

Start Hunting!

Translated by