Still no joy in using the second RS232 port on my PC. Action on my part appears slow because I need to use the PC (first RS232 port) to acquire data for long periods which limits my ability to debug the problem (and I have other work to do!)...
I have written and attached a small VI to illustrate the problem (I think this eliminates possible coding errors in my bigger program). This VI initialises both ports and then sends characters to each port until I press a stop button. Looking at the COM1 9-pin socket on the back of the PC with an oscilloscope, I can see data on pin 3 as expected. There is no activity on any pin on the COM2 9-pin socket. I note that the VI reports no errors (error numbers zero) during initialisation or during the output loop.
I've had a look inside the PC. The ports are built into the PC motherboard and there appear to be no link settings on the board. There is no clear identification on the board either. This is a 1997 Viglen machine - a Pentium Pro. Yes, rather old but adequate for simple/slow data acquisition.
I've checked the BIOS as I said in a previous post, and repeated the results here for convenience:
Serial port 1 Address - Auto
Serial port 2 Address - Auto
Serial port 2 IR mode - Enabled [I've tried Disabled here too, with no effect]
Serial port 1 status COM1 3F8 IRQ4
Serial port 2 status COM2 2F8 IRQ3
Unfortunately it is not easy for me to try this on another PC - I'll have to search for one with LabVIEW installed and a 'scope handy...
To respond to comments specifically:
Remington - I would be surprised if the two ports were wired differently in the PC but I have never needed to use COM2 before and am prepared to live-and-learn. Having checked all pins on the second port while running my program, I doubt that this can be my only problem.
Kim - As I've implied above, there appears to be no way to disable the port by unplugging cables and the device manager reports OK to me. When I try to get to "Right click on My computer>Properties>Hardware>Device manager>Ports", I get as near as possible by "Right click on My computer>Properties>HardwareProfiles>" then all options are greyed except in the "Available Hardware Profiles:" box it says "Original Configuration (Current)" which I cannot change. (I'm not an administrator on this machine). I can also "Left-click-Start>Settings>ControlPanel>Devices>Serial" which is reported as "Started" and "Automatic". HWProfiles button then gives "Device: Serial", "Status: Enabled", "Profile: Original Configuration"
ALS - "Left-click-Start>Settings>ControlPanel>Ports" gives "COM1:" settings as 9600 baud, 8 data bits no parity, 1 stop bit and no flow control. Settings for "COM2:" are identical.
Thanks for you comments so far - Any more thoughts or questions anyone?
Richard.