Hey Dennis,
Dennis Knutson wrote:
As I mentioned, this only happens on windows xp with code that has been working with no problem for several years.
The product may be sending a serial port break at this time but I'm unable to see this with portmon. I don't know if NI-Spy would see this either but I'll give it a try when I get some time. I really think Microsoft did something with the serial ports in XP but I haven't been able to figure out what yet.
My problem appears to be similar to your problem and I can convey to you the error because you originally helped me with my vi. Maybe I can shed some light unto your problem as well...
A while back you created this vi for me:
<img src="
Loading Image...
"> For the longest while it was fully operational and giving us the scanning results we needed and had hoped for. To further our testing procedures we created an excutable of this vi (which you helped me with as well) and things started to fall apart from there. The vi was originally created on a computer operating on Windows 2000. The executable was attempted on computers both with Windows 2000 and Windows NT. Some non updated VISA drivers and port failures were obvious problems as to why they didn't work right away, but there on the original vi didn't work on the original computer.
Perhaps some serial port configuration from the other two computers affected the original serial port, but that doesn't make sense because I can still send full commands to the port. I just don't receive any bytes when I perform the scan. The original vi you made for me had a 2 second wait in it. So I tried waits ranging from a few milliseconds all the way to 20 seconds hoping for a byte count to appear, but it never does. The 100 byte count constant causes the Read to timeout, but when I wire in a VISA Bytes at Serial Port I get the 0 byte count going in and the loop never detects the "END" string and is never ending. Could the termination character prevent a byte count from appearing?
Somehow the switching from serial ports messed up my entire process and it holds some similarity to your problems with Windows XP and serial port malfunctions.
Thank you for any help and input,Message Edited by Steve.Briggs on 02-28-2007 10:57 AM