Simulink Block not used.
显示 更早的评论
Hello,
I am trying to make a Simulink Model, most of the blocks work properly, but some are "not used" as it says on the yellow labels. I want to know what it means that the block is "not used". As I already searched it says that "Simulink cannot obtain the signal value due to optimization." but i dont really understand how to solve the problem. The blocks already exist in the Simulink Library Browser.
Thank you
1 个评论
Joanne Al-Adham
2021-11-29
Hi, did you figure out an answer to this?
回答(3 个)
Andreas Viborg
2024-6-28
1 个投票
The proper way to solve this is to go set Model Settings->Simulation Target(Advanced parameters)->Block reduction to off.
Hayder Gallas
2019-8-16
编辑:Hayder Gallas
2019-8-16
0 个投票
im facing the same problem, have you found a solution please !
Eugene Ofori
2023-8-16
0 个投票
I had the same problem and turns out the message is correct. I fixed this in the past by forcing matlab to think you require the signal and stop it from ignoring it due to optimisation. Connecting the signal or another signal downstream that uses your signal of concern to a display or scope has worked in the past. For my case it actually alerted me that I had forgot to assign my signal to my output bus.
类别
在 帮助中心 和 File Exchange 中查找有关 Sources 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!