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.
回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 LEGO MINDSTORMS EV3 Hardware 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!