LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I send binary data (not ASCII) through a UDP packet?

I would like to send hexadecimal data string (e.g. 0x12AB) directly through a UDP packet.  I send the hex string to the UDP write and it gets translated into ASCII (e.g. 0x12AB = 31 32 41 42) before it is sent.
 
Is there a way to get the UDP write to skip the ASCII translation?
0 Kudos
Message 1 of 3
(4,547 Views)


@dsp222 wrote:
I would like to send hexadecimal data string (e.g. 0x12AB) directly through a UDP packet.  I send the hex string to the UDP write and it gets translated into ASCII (e.g. 0x12AB = 31 32 41 42) before it is sent.

No it doesn't. A string is a string. Check the display format of the various string indicators. Maybe you are doing something wrong. How do you generate the "hexadecimal data string? (Right= "typecast", wrong= "number to hexadecimal string")
 
If you are still confused, please attach a simplified example of your VI.
Message 2 of 3
(4,538 Views)

Much Appreciated.

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