MATLAB Answers

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)
Carlos Morrison
Carlos Morrison on 21 Aug 2017
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'

  0 Comments

Sign in to comment.

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).

  0 Comments

Sign in to comment.

Categories

Community Treasure Hunt

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

Start Hunting!

Translated by