The following error occurred during deployment to your hardware board: Index exceeds matrix dimensions. The simulation works though. Please help!
46 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Logan Sledge
am 30 Sep. 2017
Kommentiert: MathWorks Student Competitions Team
am 4 Okt. 2017
Please help. My simulink image is attached.

1 Kommentar
Nick Choi
am 2 Okt. 2017
Based off of the blocks, I assume that this is being deployed onto VEX robotics hardware. Is this correct?
Are there any operations inside the If action subsystems? Can you describe what you are trying to achieve with this model?
Antworten (1)
Ashwini Venkatappa
am 4 Okt. 2017
We observe this error generally when the vex controller is not connected to the computer.
- Ensure you have disconnected the gamepad.
- Connect the VEX controller using a USB cable.
- In the device manager, we should see a com port assigned for the VEX controller.
In the MATLAB command window, execute
>> usbDeviceObj = matlab.hwmgr.internal.hwconnection.USBDeviceEnumerator;
>> vexSerialPortCell = usbDeviceObj.getSerialPorts('productid','000b','vendorid','04d8');
>> vexSerialPort = vexSerialPortCell{1}
"vexSerialPort" should be same as the com port of the VEX controller.
Please note: The workflow of programming the VEX controller wirelessly using gamepad and VEXNET is currently not supported in Simulink.
The above answer is valid for VEX EDR only.If you are using a different variant of VEX controller contact Mathworks Technical Support.
1 Kommentar
MathWorks Student Competitions Team
am 4 Okt. 2017
Here is a post related to this topic on the BEST forum: http://forums.bestinc.org/post/help-for-error-index-exceeds-matrix-dimensions-9305119?pid=1300255521
Note that, as Ashwini mentioned in the previous answer, the download will not work successfully if you using a VEX gamepad/controller to do it wirelessly. You will have to connect the Cortex directly to the computer over USB and then hit 'Deploy to Hardware'.
Siehe auch
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!