Timing for UDP Data Stream
显示 更早的评论
I have a software defined radio that is streaming data over a network port at 192,000 Samples per second. I want to connect to that complex data stream to work with the data. Based on my testing so far, it looks like the data packed in the UDP stream are coming in with a length of 128 complex samples.
As a prototype, I am tuning my SDR to a local FM station. My model currently has two blocks; I am currently connecting the UDP Receive block to the the FM Broadcast Demodulator block. After noodling with the message and the buffer sizes in the UDP receive block I am getting sounds, but is sometimes doesn't sound right.
I think it has to do with the UDP block sample time and the solver Fixed-step size. I am relatively new to simulink, so I am a bit confused as to the meaning of "Fixed-step size (fundamental sample time)" and the sample time in the block - even after doing some reading on the topics.
I guess my question is, if I am trying to stream live UDP data from a network connection, what simulation time setting would be needed for a sample rate of 192e3 Hz?
采纳的回答
更多回答(1 个)
Gavin Grant
2021-9-20
0 个投票
Michael,
Consider setting the Sample Time of the UDP Block to 1/192e3 and setting the Simulink Fixed-step size to auto.
Best regards,
Gavin
类别
在 帮助中心 和 File Exchange 中查找有关 Analog Devices ADALM1000 Support from Data Acquisition Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!