UDP Send subpsb block error

1 次查看(过去 30 天)
Benny
Benny 2014-3-17
评论: Benny 2014-3-21
Hey there,
i've got a problem with the UDP Send block in Simulink. Im receiving datagrams containing 10 double values each, doin some filtering and stuffs and sending them back to my smartphone. Well, its working quite fine but every now and then i get that weird error: "Error evaluating registered method 'Outputs' of MATLAB S-Function 'subpsb' in 'NAME'." Sometimes it happens if i click the run-button, sometimes after 1 min and sometimes after 15 mins... I cant see any pattern in that. In the UDP Receive block i changed the sample time to "0.00390625". This is the sample time the device conncted to my smartphone uses. In the Picture you can see the error and my simplified model (just Receive and Send and the error is still be thrown).
Thanks for your help in advance!
  2 个评论
Kaustubha Govind
Kaustubha Govind 2014-3-20
Perhaps the sample-time is too small, and the write operation can occasionally take longer than 0.00390625 seconds?
Benny
Benny 2014-3-21
Hm, well...that might be an explanation. Im running Simulink on my notebook and i noticed that it takes some time to start the simulation. Ok, i gotta try it on a faster computer then. Thx for your help.

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Simulink Functions 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by