LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to send 2byte data through uart

Solved!
Go to solution

Hi all,

 

I want to send 16 bit hex data serially to the uart. I have taken an array of 132 representation and selected the hexadecimal from its properties. to convert this array into string i have selected the byte to string conversion and have connected this to the write serial Vi. If I send 8bit data I get them properly in the uart. But if I send 16 bit data, the upper byte is skipped and I just get the lower byte. E.g. if I send 1234 I just get the 34 in uart.

 

How could i do this....??

 

0 Kudos
Message 1 of 3
(3,287 Views)

Hi Saki,

 

                  I hope this is help for u..

 

Conversion.JPG

 

Siva.

Sivaraj M.S
CLA
0 Kudos
Message 2 of 3
(3,274 Views)
Solution
Accepted by topic author saki

Hi Saki,

 

it's also possible without using a loop:

check.png

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 3 of 3
(3,270 Views)