Sample time difference error when I make the subsystem a referenced model

4 ビュー (過去 30 日間)
Jill
Jill 2012 年 1 月 20 日
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 ExchangePorts and Subsystems についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by