Error in builnding model on Arduino
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Hi everybody, I'm trying to build a very simply model on arduino mega 2560 board to move a servoactuator. When I press 'Build' it stops the procedure because of this error:
The corresponding 'msfun_arduino_servowrite.tlc' file for the MATLAB S-function 'msfun_arduino_servowrite' in block 'provaservu/Servo Write' must be located in the current working directory, the MATLAB S-function directory 'C:\Users\Valerio\Desktop\Tesi\Arduino0022-mavlink1.0\Arduino_simulink\demos', or the directory 'C:\Users\Valerio\Desktop\Tesi\Arduino0022-mavlink1.0\Arduino_simulink\demos\tlc_c'
I haven't any .tlc file and I don't know how to do to solve my problem.
Any ideas about that?
Thank you all!
VZ
2 comentarios
Arun Limgaokar
el 13 de Abr. de 2018
"ok i've solved my problem alone! Thank you all!", May i know how.
Respuestas (5)
Kaustubha Govind
el 13 de Feb. de 2012
Is this where you got your blocks from? If yes, there is a comment in the Discussion section that talks about this error:
"[The] MATLAB Support Package does not support code generation. The included Simulink blocks communicate with the Arduino in Simulink "normal" (aka. simulation) mode only.
For blocks that support code generation, see http://www.mathworks.com/academia/arduino-software/arduino-simulink.html"
0 comentarios
Valerio
el 14 de Feb. de 2012
1 comentario
Kaustubha Govind
el 14 de Feb. de 2012
Valerio: I would recommend setting a breakpoint in your Outputs method and stepping through it to see what is going wrong. My guess is that error is coming from:
fwrite(serialObj, data, 'uint8');
There might be something wrong with your serial port object?
Sebastian Dietz
el 29 de Oct. de 2015
Valerio, it would be great if you could tell us how you solved your problem.
0 comentarios
Ver también
Categorías
Más información sobre MATLAB Support Package for Arduino Hardware en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!