Hi All,
I'm hoping someone will be able to point me in the right direction for the best way to dissect large UDP packets that contain 18 bit data samples. I'm new to labview with my experience being more on the electronics/embedded C side.
The UDP packets that I'm reading are 1200 bytes long. I'm able to strip out the Ethernet header, IP header and UDP header using the "Unflatten from String" function without issue, which leaves me with the IP data which is 1158 bytes long.
There is then 78 bytes of hardware status information and the remaining 1080 bytes is made up of three blocks of 360 bytes, each of those blocks consists of 160, 18-bit samples from an 8-channel ADC (160 samples per block, 480 samples per packet). I've gotten as far as breaking the packet into those blocks, but the best way to break it into individual samples is something I could use help with.
The only way I can think of separating the data into 18-bit groups in Labview is to convert it to a boolean array and then parse it, but this seems very clunky.
I'm sure I can brute force something together that works but the VI will need to parse 1000 packets per second, so speed with be an issue. If anyone has any high level recommendations that would be great (don't expect anyone to build this for me - just pointing me in the right direction or making suggestions would be fantastic).
Cheers,