Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
9 years, 6 months ago.
Serial Connection Issue with Matlab and mbed LPC1768
Hello,
I use the mbed LPC1768 and Matlab R2014b. I can read data which is send by the mbed via the serial line with 115200 baud. But whenever I close the serial connection and open it afterwards, the connection gets stucked. There comes a time out message from matlab and I have to restart Matlab and reconnect the mbed to be able to read data again. I experienced this with the Test and Measurement Tool from Matlab (see screenshot), but also when coding in Matlab. I always closed the serial line correctly with fclose and deleted and cleared the line and also reseted all serial connections but nothing helped. With an older version of Matlab (2011) I had the same problem. On the mbed 1768 is the latest firmware and I have the mbed serial driver installed on windows 7 x64. I have no issues with e.g. TeraTerm.
Has somebody had the same problem and a solution for it?
Klaus
I've got the same problem (at 9600 baud). I'm running windows 8.1, matlab 2014a, mbed 1768 (latest firmware). I am able to connect, but list of objects is " / / ". Matlab gives "Warning: Unexpected Warning: A timeout occurred before the Terminator was reached."
posted by Josh Machacek 30 Dec 2014