LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Extra 2 Bits During Serial Communication

Solved!
Go to solution

Using the attached VI, we are attempting to send two bytes, 0x11 0x11 through the serial communication lines. When using the oscilloscope to decipher what was sent, we obtained the following screenshot. First, we noticed the data was sent LSB first, is there a way to send MSB first? Second, we noticed the addition of two bits between each of the bytes, highlighted in red below. We noticed that these extra two bits exist after each byte sent. How can we get rid of these extra bits? I have attached a screenshot as well of the current VI configuration we are using. 

 

 bfurrcentrakcom_0-1710266917081.png

bfurrcentrakcom_2-1710267306112.png

 

bfurrcentrakcom_1-1710267254350.png

 

 

0 Kudos
Message 1 of 5
(350 Views)

I cannot open your VI because it is saved in labview 2023 (or something like this). Most people here use an older versions. LabVIEW 2019 might be ok.

 

What can be seen on the scope depends on the transmission parameters, For me it looks like 9600 baud, 1 stop bit, 8 data bits. The extra two bits are the start bit and the stop bit. These two bit are needed to syncronize the asyncronious communication between the endpoints. That's it.

 

 

0 Kudos
Message 2 of 5
(320 Views)
Solution
Accepted by topic author bfurr@centrak.com

Looks like a standard UART waveform.  Normal is 8 data bits, a start bit, and a stop bit, resulting in 10 bits per byte you send through the UART port.  Anything that is receiving a UART signal (microcontrollers often have this built in anymore) will interpret all of this correctly.


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 5
(292 Views)

How can you tell that it is sending the LSB first when your post mentions sending 0x11 and 0x11?  Both bytes are the same.  Did you mean that you are sending 0x88 and 0x11?  The order sent is determined by the endian which is typically related to either Motorola or Intel data transfer.

 

Crossrulz is correct that it has the start and stop bits surrounding the data as part of the data stream.

Help the Community (and future reviewers) by marking posts as follows:
If it helped - KUDOS
If it answers the issue - SOLUTION
0 Kudos
Message 4 of 5
(282 Views)

Thank you for the help!

0 Kudos
Message 5 of 5
(274 Views)