Push Button block - disappearing Issue

I am using push button in my simulink model to take input from user for button press.
I am using customised Image on top for that button. It works well until I close the model.
Once I repon the model, Push button disappears and only boundary of the Push button remains visible in the same area.
If I click on the button no click action is getting performed but it highlights connected blocks that using its input on click action.
I have checked image path, it is kept at the same path where model is stored.

3 comentarios

dpb
dpb el 29 de Abr. de 2026 a las 16:55
Editada: dpb el 29 de Abr. de 2026 a las 18:03
Have you defined an icon/image for each possible state of the push button? I'd conjecture there isn't anything defined for one or more states and that's the state getting saved/restored from when close.
Priyesh
Priyesh hace alrededor de 4 horas
Yes, there are 2 states for the momentary type switches. I am using different color for each state keeping the image same.
It should be either ON or OFF, not sure which state it enters when restored. Thanks.
dpb
dpb hace alrededor de 7 horas
I've never even seen an installation of Simulink so "I know nuthink!" a la Sgt Schultz, but <Custom Push Button> doc indicates the states are
  • While you push the button, the block is in the Pressed state.
  • When the button is latched and you are not pushing it, the block is in the Latched state.
  • When the button is latched and you are pushing it, the block is in the Latched and Pressed state.
  • When the block is not in any of these three states, it is in the Default state.
It would seem to me each of those whould have to have a defined image if customized.
Have you been able to get an example to work?
I presume if you don't try the customized image, your model will also work to prove it is something in the images?

Iniciar sesión para comentar.

Respuestas (0)

Productos

Versión

R2024b

Etiquetas

Preguntada:

el 29 de Abr. de 2026 a las 8:45

Comentada:

dpb
el 30 de Abr. de 2026 a las 13:59

Community Treasure Hunt

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

Start Hunting!

Translated by