LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

get numbers out of a udp string

I am using the NI udp receiver.  I receive a signal from a C/C++ program.  I get a bunch of boxes and garbage characters on the screen.  I am trying to get the folllowing unsigned integers out of it: 
 
32 bit/ 8 bit/ 8 bit/ 8 bit/ 8 bit/ 32 bit
 
I know that is what the person sent - I looked at the signal with the packet sniffer ethereal.  How do I get my information out of the signal?
0 Kudos
Message 1 of 2
(2,519 Views)
There are many ways to do this, and most involve typecasting or unflattening of some sort. A very easy way with mixed data types such as this would be to typecast it to a cluster containing the right data types in the right order. See attached.
 
There are many other ways to do this. 🙂
 
 
(Notice also that I set the string to HEX display so it is more readable. In normal display, you only see garbage characters)

Message Edited by altenbach on 06-23-2006 09:48 AM

Download All
Message 2 of 2
(2,510 Views)