Simulink Block not used.
24 views (last 30 days)
Show older comments
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 Comment
Answers (3)
Andreas Viborg
on 28 Jun 2024
The proper way to solve this is to go set Model Settings->Simulation Target(Advanced parameters)->Block reduction to off.
0 Comments
Hayder Gallas
on 16 Aug 2019
Edited: Hayder Gallas
on 16 Aug 2019
im facing the same problem, have you found a solution please !
0 Comments
Eugene Ofori
on 16 Aug 2023
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.
0 Comments
See Also
Categories
Find more on Manual Performance Optimization 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!