Pregunta

I have a Simulink model that needs to integrate a external EXE. (I do not have access to EXE source code).

I was thinking in using a Sfunction to call this EXE and handle all inputs/ouputs.

Since I am a completelly newbie in Sfunctions, I am wondering if it is necessary to write a Sfunction TLC in order to make my model run in compiled mode? Does it make any sense?

¿Fue útil?

Solución

Depends on what language you are going to write the S-Function in.

To use an m-code S-Function with Simulink Coder you will need to write a tlc file.

TO use a c-mex S-Function with Simulink Coder you do not need to write a tlc file unless you want to in-line the code.

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top