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

r2012bserial

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;

Best 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?
Related Question