Effacer les filtres
Effacer les filtres

How to connect Simulink with Arduino in case of msfun files?

2 vues (au cours des 30 derniers jours)
Abhishek Patel
Abhishek Patel le 18 Août 2017
Modifié(e) : Walter Roberson le 21 Août 2017
I'm using MATLAB R2016a.
when running the simulation, the model error is occured like this
### Build procedure for model: 'motorPI2' aborted due to an error.
The corresponding 'msfun_arduino_analogwrite.tlc' file for the MATLAB S-function 'msfun_arduino_analogwrite' in block 'motorPI2/Arduino Analog Write' must be located in the current working directory, the MATLAB S-function directory 'C:\Users\Devil\Documents\MATLAB\ArduinoIO\simulink', or the directory 'C:\Users\Devil\Documents\MATLAB\ArduinoIO\simulink\tlc_c'

Réponses (1)

Ankit Bhatnagar
Ankit Bhatnagar le 21 Août 2017
Hi,
The code generation requires the 'tlc' file to be placed in the current working directory. Check the following post for further details:

Catégories

En savoir plus sur Arduino Hardware dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by