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 で MATLAB Support Package for LEGO MINDSTORMS EV3 Hardware についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!