LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

unable to establish serial connection between 2 serial ports of same laptop

I am trying to run "Basic 2 port serial write and read.vi" from the labview example using the 2 different com ports of same laptop. My serial cable is fine. It has passed loopback test. Also I have successfully communicated with the microcontroller(via max232) using the same cable. Still In the given example, I am not recieving character that I have written in the "string to write" window. I have confirmed the com port numbers. The cable I am using is simple 3 wire tx-rx and ground cable. I have also tried to connect two ports on two different pc's that also doesnt work. What may be the problem? I can't see any.                 

0 Kudos
Message 1 of 26
(2,852 Views)

Post your VI friend. This will help us to debug the problem better.

 

VI in 2011 compatible format Smiley Very HappySmiley Very HappySmiley Very Happy

--------------------------------------------------------------------------------------------------------
Kudos are always welcome if you got solution to some extent.

I need my difficulties because they are necessary to enjoy my success.
--Ranjeet
Message 2 of 26
(2,843 Views)

Is the cable a straight through or a NULL Modem?  You will need a NULL Modem cable which means that the TX on one side is connected to the RX on the other side and visa versa.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 3 of 26
(2,837 Views)

The .vi given in the labview example "Basic two port serial write and read". I am using two usb to db9 convertor to convert my usb port into com port. and then connecting both of them with crossover serial cable.but nothing can be recieved at the read window and timeout occurs. 

0 Kudos
Message 4 of 26
(2,832 Views)

tx to rx , rx to tx and ground to ground confirmed

0 Kudos
Message 5 of 26
(2,830 Views)

2011 compatible please

--------------------------------------------------------------------------------------------------------
Kudos are always welcome if you got solution to some extent.

I need my difficulties because they are necessary to enjoy my success.
--Ranjeet
Message 6 of 26
(2,822 Views)

Are you changing the data being sent?  As currently configured, you need to make sure the \n stays at the end of the data.  To avoid this, turn the termination character off (input on the top of the Configure Serial Port, wire a FALSE constant to it).


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 8 of 26
(2,809 Views)

still no success 😞         In fact i can't establish communication between two different applications also. i.e between hyperterminal to labview, between labview to matlab etc..

 

0 Kudos
Message 9 of 26
(2,804 Views)

1.Which 3rd party software you are using for USB to db9 conversion. 

2. In both the PC labview is installed ?

--------------------------------------------------------------------------------------------------------
Kudos are always welcome if you got solution to some extent.

I need my difficulties because they are necessary to enjoy my success.
--Ranjeet
0 Kudos
Message 10 of 26
(2,801 Views)