Creating simulink block and hidding the code
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Hello,
I would like to know how to create a Simulink block where the code or how I did it is not open, that is hidden. It's like having a block where you can't see under the mask, the unlock option was not available.
Imagine I want to have to make a library for commercial use. The blocks in my library contain algorithms that are not public, how is this done?
I have looked for it and I have not found any information.
0 comentarios
Respuestas (3)
Arnaud Miege
el 10 de Jun. de 2011
Have a look at the question that Paulo suggested. For what you want to do, I suspect an S-function is the best option. You'll need Real-Time Workshop (now called Simulink Coder) to generate the binary that you can share/sell to a third-party.The end-user needs to run on the same O/S as the one where the binary was generated.
HTH,
Arnaud
0 comentarios
MarkB
el 13 de Jun. de 2011
The S-function approach is probably the right way to go. If you plan on distributing it, you would need to provide a ".mex" file for every architecture that you plan to support (e.g. ".mexw32", ".mexw64", etc.)
In addition to this, you might be able to support code-generation as well by providing ".o" or ".lib" files for most of the source and only using TLC to generate function calls that will use those ".o"/".lib" files.
0 comentarios
Ver también
Categorías
Más información sobre Simulink Coder 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!