[Simulink] Enabled subsystem changes input sample times
1 view (last 30 days)
Show older comments
I've been having an issue for a few days now, regarding signal sample times inside an enabled subsystem.
I have a block inside a library, that has an enabled subsystem which is supposed to receive a bus signal as an input. The bus comprises several signals, some of which with different sample times amongst each other. After running "Sample Time Display", I'm noticing that all the signals' sample times get changed to "Constant", once they get inside the enabled subsystem.
Here's what I am observing. I used a "bus selector" both outside (before the subsystem) and inside the subsystem and got each individual signal comprising the bus. As you can see, some of the signals have a sample time (marked red) associated with them, whereas others are set as "Constant" (marked black). However, all sample times get converted to "constant", once inside the enabled subsystem.
In my subsystem's InPort, I've set the sample time value to "inherited", so I'm assuming all sample times should be preserved. Is this a bug from Simulink?
I'm running Matlab 2009b and Simulink 7.4 under Ubuntu 14.04 LTS 64-bit.
Thanks in advance.
0 Comments
Accepted Answer
Zoe Xiao
on 3 Aug 2017
If in your model, there is an nonvirtual Inport block in the enable subsystem, I think it is the same issue as the one shown in this bug report: https://www.mathworks.com/support/bugreports/612693
This has been fixed in 2010b. You could upgrade to version later than 2010b. Or follow the workaround on 2009b provided in the above link.
More Answers (0)
See Also
Categories
Find more on Subsystems in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!