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 comentario

Joanne Al-Adham
Joanne Al-Adham el 29 de Nov. de 2021
Hi, did you figure out an answer to this?

Iniciar sesión para comentar.

Respuestas (3)

Andreas Viborg
Andreas Viborg el 28 de Jun. de 2024

1 voto

The proper way to solve this is to go set Model Settings->Simulation Target(Advanced parameters)->Block reduction to off.
Hayder Gallas
Hayder Gallas el 16 de Ag. de 2019
Editada: Hayder Gallas el 16 de Ag. de 2019

0 votos

im facing the same problem, have you found a solution please !
Eugene Ofori
Eugene Ofori el 16 de Ag. de 2023

0 votos

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.

Categorías

Más información sobre Modeling en Centro de ayuda y File Exchange.

Preguntada:

el 3 de Abr. de 2019

Respondida:

el 28 de Jun. de 2024

Community Treasure Hunt

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

Start Hunting!

Translated by