UDP Streaming to Simulink model

Added by Matthew Haas 5 months ago

Hey Guys,
I'm trying to stream some data to simulink from an ESP32 over udp. I'm able to receive the data but have to parse out the character array which is kind of a pain into floats. That is working though. The transmission of greater than ~ 250 bytes seems to break the sprintf blocks or the udp transmission. I have set the buffer to 512 which will hold the data, but it stops short of what i want. I want to really send an array of uint8s and not have to deal with character strings as input to the UDP block. It there some other way to do this that I don't know of? Any help is appreciated


Replies (1)

RE: UDP Streaming to Simulink model - Added by Parth Maheshwari (พาร์ท) 5 months ago

Hi Matthew,

Thank you for reaching out.

It would help to see your Simulink model. May I request you to attach that for us please? We are using MATLAB R2022b, so in case you are using a later version kindly export it to a previous version to allow us to open your file. Thank you.

Sincere regards,