9 years, 4 months ago.

matlab serial communication with mbed

I am trying to use mbed LPC1768 to read sensors and use matlab to collect the data by serial port. If I use PuTTy, I am able to see the data of serial port perfectly. However, when I try to use matlab, it does not work.

the command on matlab is simple like: mbed = serial('COM5') fopen(mbed) value = fscanf(mbed,'%f')

I can read the first two values but after that, the value will always the same.. I use the LEDs on mbed to debug, the code of mbed does not have problems. However, the LED of the USB connector will not blink if I use matlab. The problem is the the data will not continually be sent. Could anyone help me about this?

Be the first to answer this question.