03-18-2010 05:32 AM
03-18-2010 08:19 AM
As far ai I understand you can write (because your hardware reacts on you commands), but you can't read (you get a timeout error).
Are you sure your hardware is outputting somithing to be read? Maybe you're trying to read the wrong number of characters? If you expect to read 10 chars, but your device outputs only 4 chars, you're getting a timeout.
Regards
03-18-2010 10:38 AM
You could have the wrong com settings, you could have the wrong type of serial cable (there are two basic types), you could be sending the wrong command, etc. Countless possibilities. I would suggest you do your basic com checks with a program such as Hyperterminal before you try any code of your own. At the very least, you can get support from the instrument vendor when you first use Hyperterminal.
Some basics to understand - you can only set the com settings of the pc and a wrong cable will be the same thing as no cable. There is no error generated when you have no cable connected and you will not have any errors if you have the wrong type of cable.