LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How would I receive an array of hex values with UDP read?

Hi

I am transmitting an array of hex values using a multicast sender. Is it possible to configure the UDP read vi to parse this data appropriately ?

Thanks
Brinda
0 Kudos
Message 1 of 7
(3,564 Views)
Easy : type cast the data string to a U8 array, as illustrated in the attached image. The "Type cast" primitive is in the "Advanced >> Data manipulation" subpalette.
CC
Chilly Charly    (aka CC)
0 Kudos
Message 2 of 7
(3,564 Views)
I tried doing that but I am unable to feed the output from the typecast into an array numeric indicator.
Thanks
Brinda
0 Kudos
Message 3 of 7
(3,564 Views)
Have you wired an array of numeric indicators (U8) as secondary input to the typecast node, as in the example provided ?
Chilly Charly    (aka CC)
Message 4 of 7
(3,564 Views)
So I typecast it into U32. Then I wire it to an array indicator -> but the output from the typecast node and the array indicator are not compatible.

Thanks
Brinda
0 Kudos
Message 5 of 7
(3,564 Views)
Use an ARRAY of U8 as input !
If your problem persists, post your vi, I'll fix it for you...
Chilly Charly    (aka CC)
0 Kudos
Message 6 of 7
(3,564 Views)
I fixed it by using the String to Byte Array instead of the typecast vi. I fed this to a byte array and it works now .. though all the bytes are flipped but that I can deal with 🙂

Thanks a bunch
Brinda
0 Kudos
Message 7 of 7
(3,564 Views)