Sample time difference error when I make the subsystem a referenced model
조회 수: 4 (최근 30일)
이전 댓글 표시
I have a subsystem that has one referenced model that does a bunch of calculations and sends out a bunch of values (all doubles). In previous versions of my software, I had the output from my referenced model going into the inputs of a subsystem in my model. The only thing the subsystem did was to take all the inputs, mux them together and feed them into a MatLab function that performed some calculations and then output the new vector of values. I have the sample time on the inputs to be -1. This has worked without problems until I decided to make that subsystem into a referenced model. Now I get the warning (it was an error, but I changed the multitask conditionally executed subsystem under sample time in the configuration parameters to be warning instead of error). The warning I get is: Warning: Inconsistent sample times. Sample time ([0, 0]) of signal driving input port 31 of 'FS_CAN_Enabled/Model' differs from the expected sample time (1) at this input port.
I really don't want to add a rate transition block for each port as there are a lot of ports. Any ideas? I also didn't want to set the sample time for each port explicitly because if we change sample times, I have to change all those ports.
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Ports and Subsystems에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!