Question

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?

Was it helpful?

Solution

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top