Level 2 S-Function in Simulink cannot be deployed to Arduino

I have a simulink model which contains a s-funtion inside, when i try to deploy it to arduino i get an error like:
The corresponding 's_function.tlc' file for the MATLAB S-function 's_function' in block 'untitled/Level-2 MATLAB S-Function' must be located in the current working directory, the MATLAB S-function directory 'C:\Users\...\model', or the directory 'C:\Users\...\model\tlc_c'
what should i do to fix this problem?

3 Comments

The error message is pretty straightforward. Have you tried placing s_function.tlc in any of the suggested folders?
how can i create an tlc file? also it will be empty, right?
I don't know. I'm not a Simulink user. I also don't know if this is an existing model or something you created yourself.

Sign in to comment.

Answers (0)

Categories

Commented:

on 9 Aug 2017

Community Treasure Hunt

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

Start Hunting!