Sample time difference error when I make the subsystem a referenced model
1 次查看(过去 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!