How to rename the S-function when automatically converting the simulink model to an S-function?
7 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
阜林 刘
el 5 de Dic. de 2022
Comentada: 阜林 刘
el 15 de Dic. de 2022
I plan to generate S-functions from two different models and run them in one window, but the converter always names S-functions with the same name. Where can I customize the generated S-function name?Thank you
0 comentarios
Respuesta aceptada
Fangjun Jiang
el 7 de Dic. de 2022
Not sure what happened to you, but I tried in R2022b. The default name for the generated S-function name is "SubSystemBlockName_sf". The special characters (e.g. carriage return) in the SubSystemBlockName were cut off. So give your source block a different name and remove special characters, then generate the S-function again.
If you generate the S-function from a model, name the model differently.
Más respuestas (0)
Ver también
Categorías
Más información sobre Block and Blockset Authoring en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!