I'm trying to make a programm that when it recieves the right signal from another computer it continues the loop until it gets back. but I keep getting this error whenever I try and use the read commad. any help? I've checked settings they seem to be fine.
I would re-check your settings as they are the culprit almost all the time. If you are sure of those then make sure you have a properly terminated serial cable. If you have a device that outputs data on a schedule this may also be the problem, this KnowledgeBase has the solution to that issue.