Info

Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.

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 Ansicht (letzte 30 Tage)
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'

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

Communitys

Weitere Antworten in  Power Electronics Control

Community Treasure Hunt

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

Start Hunting!

Translated by