How to add right click options in Simulink

I have a subsystem and I want to add specific function( like copy the subsystem to a new model) at the right click. Is there way to do this.

1 comentario

Venkat Kankata
Venkat Kankata el 14 de Mzo. de 2018
I am also interested in this question...will it possible..if u have more info plZzz share with me !!!

Iniciar sesión para comentar.

 Respuesta aceptada

Kaustubha Govind
Kaustubha Govind el 3 de Oct. de 2012
Editada: Kaustubha Govind el 7 de Ag. de 2018

4 votos

Please see Add Items to Model Editor Menus about adding items to the Simulink menu. I think you need the Simulink:PostContextMenu tag so you can add to the end of the context menu. You might need to examine the "callbackInfo" object to see if you can enable the menu callback only for subsystem blocks, because I don't think the Simulink:PostContextMenu tag is context-specific.

4 comentarios

Sunu
Sunu el 5 de Oct. de 2012
I tried to see if the selected block is a subsystem and then enable the right click options..otherwise disable it. Thanks for help Kaustubha
Venkat Kankata
Venkat Kankata el 14 de Mzo. de 2018
when i made right click on the simulink blocks,i will get options...i need to add one more option to the right click options...plZZ let me know if u have an idea about it...
RHYTHM GOYAL
RHYTHM GOYAL el 30 de Jul. de 2018
I am also interested in this question. Please let me know if you got some answer to this.
Praveen Kumar
Praveen Kumar el 3 de Dic. de 2019
cm means sl_customization_manager(instead of cm we can give ditrectly give this command)

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Simulink Environment Customization en Centro de ayuda y File Exchange.

Productos

Etiquetas

Preguntada:

el 3 de Oct. de 2012

Comentada:

el 3 de Dic. de 2019

Community Treasure Hunt

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

Start Hunting!

Translated by