Quantcast
Channel: All LabVIEW posts
Viewing all articles
Browse latest Browse all 204052

Re: How to generate UDP traffic

$
0
0

Hi !

I have a similar issue with communication with a piece of hardware.

The problem is that it seems that my message is mixing characters and binary. Here is the data I have to send in each UDP packet (all data is send in little endian) :

4 bytes: 53591 (little endian)

2 bytes: 1 (little endian)

21 bytes: a name terminated by a '\0' character

40 bytes: all zeros

 

test_write.PNG

I tried to use the flatten to String  VI to translate my data into string but it doesn't work (in the example above, the name is inexistant but I also tried to include some ASCII characters into bytes in the byte array, without success).

I also tried before to convert my whole message into a string of 0&1's and also a translation of the data into a hexadecimal string, and also a translation of the message to ASCII characters, all three trials without success.

 

Thank you in advance for your help !


Viewing all articles
Browse latest Browse all 204052


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>