Info

This question is closed. Reopen it to edit or answer.

I'm designing a motor controller involving an attached encoder. My OS is windows 10. I attempted to upload the code to an Arduino DUE which generated the error below. How can I resolve this issue? Also see attachment.

1 view (last 30 days)
The corresponding 'msfun_arduino_io_setup.tlc' file for the MATLAB S-function 'msfun_arduino_io_setup' in block 'MOTOR1/Arduino IO Setup' must be located in the current working directory, the MATLAB S-function directory 'C:\Users\carlo\OneDrive\Documents\MATLAB\Add-Ons\Collections\Legacy MATLAB and Simulink Support for Arduino\code\simulink', or the directory 'C:\Users\carlo\OneDrive\Documents\MATLAB\Add-Ons\Collections\Legacy MATLAB and Simulink Support for Arduino\code\simulink\tlc_c'

Answers (1)

Sharan Paramasivam Murugesan
Based on the type of S-function and how you want to generate code for that S-function, you might need a .tlc file. The following doc explains the various types of S-functions:
From the error you provided, it appears that the .tlc file is missing. If you have a .tlc file for the S-function, you should place it in one of those three folders mentioned in the error message (preferrably the current working directory).

Communities

More Answers in the  Power Electronics Control

Community Treasure Hunt

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

Start Hunting!

Translated by