LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Extra one byte data reception in serial (UART) reception

I am using the Labview VISA-UART (serial) driver call for UART transmit and receive.

 

Sending 10 bytes of  data but in the reception side I am receiving 11 bytes of data.

First Data always I am getting 00

remaining I am getting my transmitted data.

Sometime I am not receiving the 11 byte (10th byte of transmitted data).

 

Initially first time it receives 10 bytes, after that it receiving 11 bytes.

 

 

What could be the cause of this problem?

 

Please help me to get out of this problem.

 

 

With regards,

Ramamoorthy S

with regards and warm welcome,
Ramamoorthy S
0 Kudos
Message 1 of 16
(3,206 Views)
  1. Are you sure the ports on both sides of the connection are configured the same?
  2. What kind of device are you talking to from LabVIEW?
  3. How can you tell you are getting the extra data?
  4. What about sending data back to LV, does that work?

 

Mike...


Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 2 of 16
(3,186 Views)

What is the number of byte to be read you are using. May be when Tx is not sending then also your program is running may cause this problem also. Post your VI for better answer.

--------------------------------------------------------------------------------------------------------
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 3 of 16
(3,168 Views)

1. Are you sure the ports on both sides of the connection are configured the same?

          Both are same configuration

 

2. What kind of device are you talking to from LabVIEW?

          PC to PC we are communicating (CROSS cable).

 

3. How can you tell you are getting the extra data?

  •           Reception side i kept receive count as 10 bytes but this code is continouse reception infinite time out.
  •           What ever i transmit, first it receives 00 next iteration onwards started receiving transmitted data.

4. What about sending data back to LV, does that work?

              Loopback in the same PC its working but when we are communicating with the other PC its receives extra one byte.

 

Here i have attached my VI 

 

 

with regards,

Ramamoorthy S

 

with regards and warm welcome,
Ramamoorthy S
Download All
0 Kudos
Message 4 of 16
(3,158 Views)

do that for 2011...

--------------------------------------------------------------------------------------------------------
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 5 of 16
(3,152 Views)

I dont have a 2011 version i have only 2012

with regards and warm welcome,
Ramamoorthy S
0 Kudos
Message 6 of 16
(3,150 Views)

you can save in 2011 format friend..Go to file --> save for previous version and select 2011

--------------------------------------------------------------------------------------------------------
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 7 of 16
(3,146 Views)

I have attached the snapshot of the transmitter and receiver vi.

with regards and warm welcome,
Ramamoorthy S
Download All
0 Kudos
Message 8 of 16
(3,139 Views)

What operation you want ? only read and write only right?

--------------------------------------------------------------------------------------------------------
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 9 of 16
(3,127 Views)

What operation you want ? only read and write only right?

--------------------------------------------------------------------------------------------------------
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 16
(3,127 Views)