EV3 multiple sensor connection problems

I am facing problems connecting multiple sensors to my EV3 brick. They do show up in the port view and read correct values. However when I run code like:
color_sensor = colorSensor(robot,2);
touch_sensor = touchSensor(robot,1);
I get errors on the second line. The same thing happens when I swap the line (meaning it's not related to a certain sensor) and I've also tried using other ports.
I am using Matlab R2015a and the error is as follows:
>> bci_ev3
Error using error
Unable to load a message catalog 'legoev3io:build'. Please check the file location and format.
Error in legoev3/readInputDeviceTypeMode (line 699)
error(message('legoev3io:build:Legoev3ReadInputDeviceListFailed'));
Error in realtime.internal.sensor (line 40)
[obj.Type, obj.Mode] = readInputDeviceTypeMode(ev3Handle, inputPort);
Error in touchSensor (line 32)
obj@realtime.internal.sensor(ev3Handle, inputPort);
Error in bci_ev3 (line 11)
touch_sensor = touchSensor(robot,1);
Any help is greatly appreciated.

Respuestas (0)

Categorías

Más información sobre MATLAB Support Package for LEGO MINDSTORMS EV3 Hardware en Centro de ayuda y File Exchange.

Preguntada:

el 8 de Dic. de 2016

Community Treasure Hunt

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

Start Hunting!

Translated by