LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Any reason I can't use two RS232 ports at the same time?

I have a computer with two 9-pin serial ports. I have also added in a PCI-card with two 9-pin RS422 ports for a total of 4 serial ports. Is there any reason I can't use the two ports in the same program? One port (RS422- Port 3) is sending and receiving data from a sensor; the second port (RS232 - Port 1) is sending information out to another computer. They both work independently in separate programs, but when I put them in the same .exe/project, the RS232 port hangs after one successful sent message. Any ideas or is it simply bad programming on my part?
Thanks,
CTR
0 Kudos
Message 1 of 4
(3,804 Views)
I have successfully used computer with serial ports added to built-in serial ports, but they were all rs-232. I suppose there can be some overlap in interrupts and / or memory addresses between 232 and 422 drivers or ports: you could examine the configuration for all ports and see if there is some resource conflict and eventually manually set different parameters.


Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 2 of 4
(3,786 Views)
I would also suggest you try some debugging to figure out exactly where it hangs. It would be useful to know which serial port is causing the hang. Also, is it hanging the entire computer or just your program?

Robert is correct, this is very much possible and we will do our best to get to the bottom of this.
-Marshall R
0 Kudos
Message 3 of 4
(3,772 Views)

It  was bad programming on my part. It is working well now.  The PCI card (RS422) has it's own clock frequency and there don't appear to be any conflicts. The 422 ports were working fine and it was the 232 ports on the computer that were having issues  yesterday.  It ended up being a stupid mistake on my part but now all is running very well with RS422 at 921600 baud and RS232 at 115200.  Thanks for you help and answering my question.  At least now we know we can use both RS422 and RS232 on the same computer and in the same program.  Thanks, again. 

Kind regards,

CTR

 

0 Kudos
Message 4 of 4
(3,767 Views)