Is there a bug ? when use the serial receive data in 2012B

I use the serial(2012B) receive data, sent data is OK, get suspension when the serial has data to receive. But the same program work well in 2011b;

 Accepted Answer

I solve the problom, serConn = serial(serPort, 'TimeOut', 0.15, ...
in 2012B, timeout must be integer; like this
serConn = serial(serPort, 'TimeOut', 1, ...
But what is the units ? 1 Second or millisecond?

More Answers (0)

Categories

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!