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
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)
Error in program (line 42)
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?