Hi
I got this code to check whether i'm getting response from mBed using MATLAB but it seems i got a bug.
It says
??? Error using ==> SerialRPC>SerialRPC.SerialRPC at 92
No response from mbed - check it is plugged in and you are using the correct serial port
Error in ==> mbedLEDTest at 3
mybed = SerialRPC('COM3',9600);
Here's the piece code I have done.
import mbed.*
mbed = SerialRPC('COM3',9600);
myled = DigitalOut(mbed,LED1);
for i =1:1:10
myled.write(1);
pause(2);
myled.write(0);
pause(0.5);
end;
mybed.delete;
clear;
Hi
I got this code to check whether i'm getting response from mBed using MATLAB but it seems i got a bug.
It says
??? Error using ==> SerialRPC>SerialRPC.SerialRPC at 92 No response from mbed - check it is plugged in and you are using the correct serial port
Error in ==> mbedLEDTest at 3 mybed = SerialRPC('COM3',9600);
Here's the piece code I have done.
import mbed.*
mbed = SerialRPC('COM3',9600);
myled = DigitalOut(mbed,LED1);
for i =1:1:10
myled.write(1);
pause(2);
myled.write(0);
pause(0.5);
end;
mybed.delete;
clear;