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 个评论

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.

请先登录,再进行评论。

回答(0 个)

类别

在 帮助中心 和 File Exchange 中查找有关 Arduino Hardware 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by