How to get a SimStruct * from a block path?

I'm working on a Simulink block library using C++ s-functions as the back end of the blocks, and I'm currently trying to return more meaningful error messages with the blocks they refer to highlighted. Given a block path, is there any way to obtain or spoof the SimStruct object when calling ssSetErrorStatus so that the block the path refers to is highlighted? Thanks.

 Respuesta aceptada

Kaustubha Govind
Kaustubha Govind el 21 de Dic. de 2011

0 votos

I don't this it is possible get the SimStruct* based on the block path. However, if you specify the block path in the error message, Simulink should automatically convert it to a hyperlink that the user can click on to easily navigate to the corresponding block.

Más respuestas (0)

Productos

Etiquetas

Preguntada:

el 12 de Dic. de 2011

Community Treasure Hunt

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

Start Hunting!

Translated by