Is is possible to access the simulink block names in C-S-function.
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Priyanka
el 21 de Oct. de 2013
Comentada: Priyanka
el 25 de Oct. de 2013
Hello,
I have a problem in sending the character array as an input to the S-Function block. I could not find a way to send a string as an input to my S-function. Instead I thought of using the name that is displayed under every Simulink block. So can any one of you please suggest me if there is a way to access the Simulink block name in my S-function.
Thank you
Priyanka
Respuesta aceptada
Zack Peters
el 24 de Oct. de 2013
Hi Priyanka,
The ssGetPath macro will allow you to get the full path to the block in question. This is going to be the closest that you will get to receiving the name of the calling block. From there you may be able to some manipulation to grab just the block name at the end of the character array.
~Zack
Más respuestas (0)
Ver también
Categorías
Más información sobre Naming Conventions en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!