Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TugboatEng on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

fscanf Issue

Status
Not open for further replies.

gz85

Computer
Joined
May 31, 2007
Messages
1
Location
US
Hi everyone, I have a question about a MATLAB program that involves reading data from a serial object using fscanf. I wrote it a few years ago with MATLAB version 6.5.0.180913a release 13 and it still works with that version/release but it won't work with MATLAB version 7.0.1.24704 (R14) Service Pack 1. The errors I get with the newer version of MATLAB are "Warning: A timeout occurred before the read operation completed" and "Warning: A timeout occurred before the Terminator was reached". I have been able to locate the line at which the problem arises, which is of the form:

value = fscanf(obj);

where "value" is a string and "obj" is the serial object. Any insight on why this is happening with the newer version and how to fix the problem would be much appreciated.

GZ
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top