Model_X has multiple sample times error
    조회 수: 21 (최근 30일)
  
       이전 댓글 표시
    
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
  Arvind Sathyanarayanan
      
 2019년 2월 20일
				To identify which block(s) have a different sample time goto Display ->Sample TImes -> Colors.
채택된 답변
추가 답변 (2개)
  dc
 2023년 4월 23일
        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
댓글 수: 0
참고 항목
카테고리
				Help Center 및 File Exchange에서 Sources에 대해 자세히 알아보기
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!