UDP Streaming Post Processing

조회 수: 3 (최근 30일)
Paul
Paul 2014년 2월 28일
편집: Suneesh 2014년 2월 28일
Hi I have been following this tutorial and I wonder if anyone could explain the theory around the post processing as I don't seem to be able to process my data properly
I am streaming 1 double (digital clock) and 35 'single' signals through from my target machine into the PACK_DATA block
So I have set my data size to 148 and my packet size is 10
Thanks

답변 (1개)

Suneesh
Suneesh 2014년 2월 28일
편집: Suneesh 2014년 2월 28일
Not quite sure what you mean by packet size = 10. DOUBLE are 64 bit. SINGLE are 32 bit. The data in UDP is represented as UNIT8. So you get a UINT8 packed size of 148.
148 * 8 = (64 * 1) + (32 * 35)
I am assuming you set up 'Input port data types' as {'double', 'single'}
If you send these out as UDP packets and then look at the packets using Wireshark you will see that each UDP packet has a data size of 148.
On the receive side its just the opposite of what was done for send. You set 'Output port dimensions' as {[1], [35]} and 'Output port data types' as {'double', 'single'}

카테고리

Help CenterFile Exchange에서 Target Computer Setup에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by