MATLAB: How can i send datas(rea-time ,get from udp communication) from the workspace to simulink while the simulation is on

from worspace simulink reai-time simulationSimscape Multibodysimulink

hi ,everybody there
I want to send sensors datas in the matlab workspace derieved from udp communication to simulink model ,to achive real-time simulation .How can i do it?
My final puppose is to let the robot model in simulink to move real-time according to the data read from udp .
If i store the datas in buffer for 1s (for example),then terminate the simulation and updata datas to the simulink ,what i need to do and by how ?This is essentially off-line simulation .
Many thanks..

Best Answer

Has been solved ,thanks