Matlab R2014a updates my Arduino Server Code, without asking
5 ビュー (過去 30 日間)
古いコメントを表示
I have a 64bit Win8.1 computer with Matlab R2014a and microcontroller Arduino Mega2560 attached. Both run without any problems. But when I try to call the Arduino via Matlab by
>> a = arduino ('COM2')
it starts updating the server code of the arduino. Usually information about the board appears. Instead:
Updating server code on Arduino Mega2560 (COM2). Please wait.
The expected information appears afterwards. This is a problem, because my program does not like this new server code. When running it the following Error appears:
No appropriate method, property, or field pinMode for class arduino.
Error in program>pushbutton1_Callback (line 88)
ledPin2 = 2; a.pinMode(ledPin2,'output');
Error in gui_mainfcn (line 95)
feval(varargin{:});
Error in program (line 42)
gui_mainfcn(gui_State, varargin{:});
Error in @(hObject,eventdata)program('pushbutton1_Callback',hObject,eventdata,guidata(hObject))
Error while evaluating uicontrol Callback
Uploading the original server code to the Arduino does not help, it will update it again.
This program runs on older Matlab versions and on R2014a on Win7 without any difficulties . Always with the not-updated server code. Why is it updating the server code on my computer? I have no explanation for this.
-->Why is Matlab doing this to me?
3 件のコメント
Geoff Hayes
2014 年 10 月 7 日
Jonas - glad that you got it working. If the solution was to start MATLAB in admin mode when installing the support package, then go ahead and write that as an Answer. That way, users who have this same problem can jump straight to it.
採用された回答
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で MATLAB Support Package for Arduino Hardware についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!