From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Measure

cancel
Showing results for 
Search instead for 
Did you mean: 

Timeout errors on 2nd read

Win NT, serial port COM1. I inherited this project because it doesn't work as is, so I'm completely in the dark.

When using CWSerial1 in VB6, I am getting -1002 (or 30301) timeout errors. This usually occurs when attempting to read data a second time. In Excel, I can't read even once. I'm even not sure my COM1 is configured properly -- using the hyperterminal test, I do not get double characters, using the paperclip loop on a cable I seem to be able only to send. But, I can't find anything else to change on the config. I have updated cwinstr.ocx to the most recent version. We have several instruments which use GPIB and the application works fine for them, but the same application toggled for serial and this instrument does not.


Any help is appreciated. I hope it is something obvious.
0 Kudos
Message 1 of 3
(7,213 Views)
Try hyperterminal test (with and without paperclip) on different com ports and see what you get. Make sure you dont have any other application open that uses serial ports. While doing hyperterminal test, make sure you select none for flow control and parity while doing port settings. Try changing ports and see what happens. You might have a bad com port and this hyperterminal test will tell us that. I know you have taken hyperterminal test but i want to know in little detail about the results and what happens when you try other ports.
0 Kudos
Message 2 of 3
(7,213 Views)
Ketan, thanks for your help.

I've tried both com1 and com2, with and without the paperclip, and get the same results -- no echo. Even though "Echo typed characters locally" was checked.

I hope this give you some idea as to what is happening.

Thanks,

Metra
0 Kudos
Message 3 of 3
(7,213 Views)