How do I check if my Simulink model was successfully downloaded to the VEX microcontroller or not?
Mostrar comentarios más antiguos
Hi,
I am a high school student trying to program the VEX Controller for the BEST Competition. I successfully downloaded the program on my Macbook, but I am having trouble downloading the code to my microcontroller. The LED lights do change to green when it needs to according to some directions. However, every time I "build" the code to the microcontroller using the USB cable, it doesn't work. I am not able to download any code on the controller. Do you know what the problem is?
NOTE: A user-submitted question.
Respuestas (7)
MathWorks Student Competitions Team
el 26 de Sept. de 2014
Editada: MathWorks Student Competitions Team
el 26 de Sept. de 2014
0 votos
1 comentario
James Kristoff
el 26 de Sept. de 2014
Additionally, you can use the search bar at the top-center of the diagnosic viewer to search through the diagnostic information, e.g. search for the word:
error
to find any errors in the diagnostic log.
I did check the Diagnostic Viewer, and there were no errors. However, I didn't get anything working on the microcontroller still. I attached a photo of what the viewer looks like. Also, I am thinking that maybe the computer is not able to recognize the VEX microcontroller because the program still downloads and runs even when the microcontroller is unplugged. Any solutions?

PcolaHelper
el 14 de Oct. de 2014
0 votos
I am helping with the BEST program at our school and we are having this same issue.
No errors in the log, but it does not seem to be exporting the file to the microcontroller.
We are using a MAC
1 comentario
Sandeep Math
el 20 de Oct. de 2014
PcolaHelper,
Could you please share your log from the the Diagnostic Viewer here as a screenshot for us to further investigate? Also, share your Simulink model screenshot for our reference. If you need to expedite the response to this question, please call our support team at 508-647-7000.
NOTE: Please ensure that the Simulink blocks in your model are configured correctly to reflect the pin connection on your VEX microcontroller.
Siddharth Menon
el 24 de Oct. de 2014
0 votos
It looks like you're both using Macs. This was a bug in MATLAB R2014a, it has been fixed in R2014b.
The way to work around this is either one of these: 1) Install XCode: https://developer.apple.com/xcode/downloads/ and restart MATLAB
2)add "$MATLABROOT\bin\maci64\" to the System's PATH environment variable restart MATLAB
Jordan Ragsdale
el 22 de Sept. de 2016
0 votos
I also have his same problem and im working on a windows laptop.
Lloyd Mahaffey
el 20 de Sept. de 2017
0 votos
I'm having a similar problem. My computer recognizes the controller when I plug it in (evident in Device Manager) but matlab does not recognize it when I plug it in (does not give me the “We have detected a supported VEX EDR device message in command window) . Program will not upload to the controller and I get an error Index exceeds matrix dimensions"
Sandeep Math
el 20 de Sept. de 2017
0 votos
Lloyd- I did respond to your question on the BEST Robotics forum. Did you have luck with deployment on the new computer?
If not, could you please tell me what version of Windows OS are you using, what is the MATLAB version? Could you download the VEX Companion App and install it in MATLAB, and then let me know what you see when you open that App from within MATLAB? Instructions to install the app: https://www.mathworks.com/videos/installing-a-support-package-using-add-on-explorer-1498063814825.html
Thanks Sandeep
Categorías
Más información sobre Robotics en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

