"anil " <email@example.com> wrote in message <firstname.lastname@example.org>... > hi everyone, > > i am creating serial communication in matlab.for communicating with micro controller > if i want to read some data from micro controller in matlab says warning error like > > Warning: The specified amount of data was not returned within the Timeout > period. > > what is that mean i increased timeout in matlab 0.05 to 0.1 but still its giving same waring > but its reading tha data > how to avoid this warning > > plz help me... > > thank you,
As the error indicates you might be reading data when there is no data to read or the time specified in the timeout property is reached before any data was read.
Having a Timeout of 0.1 sounds too small. Is there a reason why you have that value to 0.2 instead of the default value of 10?
You should also check the BytesAvailable property of the object. That indicates the bytes you have available to read.