For a hardware in the loop test I have my simulation running in external mode on a raspberry pi. The raspberry gets information via the udp receive block from a WAGO PLC unit. I've tested the udp signals in a seperate simulink file and it worked properly. Same thing for the simulation: There is no problem in external mode when I simulate the udp signals with a constant value and a slider gain block. When I combine both files and want to give the udp receive values to the simulation my simulink is not starting and i get the error message above.
I have two udp receive blocks, one is receiving a uint16 and the other one a bool value. When i insert only the uint16 value the simulation is running very slow so i think it is a problem to use the sampled bool value. Could it be a problem that the performance of the raspberry pi is to low or that there is not enough RAM? I wanted to try it with a sample and hold block to generate a signal which is more continuous but i couldn't get the block run fine. Would that be a solution?
I use the ode1 due to the fact that this is the only solver which runs with a good performance with my udp receive uint16 value. Would it be better to use the discrete solver for that type of application? I haven't tried that so far because I have a lot of continuous functions in my simulation which i would have to transfer to discrete ones.
5 Comments
Direct link to this comment
https://www.mathworks.com/matlabcentral/answers/234615-error-occurred-while-executing-external-mode-mex-file-ext_comm-exttargetpktpending-call-failed#comment_305756
Direct link to this comment
https://www.mathworks.com/matlabcentral/answers/234615-error-occurred-while-executing-external-mode-mex-file-ext_comm-exttargetpktpending-call-failed#comment_305756
Direct link to this comment
https://www.mathworks.com/matlabcentral/answers/234615-error-occurred-while-executing-external-mode-mex-file-ext_comm-exttargetpktpending-call-failed#comment_383406
Direct link to this comment
https://www.mathworks.com/matlabcentral/answers/234615-error-occurred-while-executing-external-mode-mex-file-ext_comm-exttargetpktpending-call-failed#comment_383406
Direct link to this comment
https://www.mathworks.com/matlabcentral/answers/234615-error-occurred-while-executing-external-mode-mex-file-ext_comm-exttargetpktpending-call-failed#comment_386594
Direct link to this comment
https://www.mathworks.com/matlabcentral/answers/234615-error-occurred-while-executing-external-mode-mex-file-ext_comm-exttargetpktpending-call-failed#comment_386594
Direct link to this comment
https://www.mathworks.com/matlabcentral/answers/234615-error-occurred-while-executing-external-mode-mex-file-ext_comm-exttargetpktpending-call-failed#comment_670779
Direct link to this comment
https://www.mathworks.com/matlabcentral/answers/234615-error-occurred-while-executing-external-mode-mex-file-ext_comm-exttargetpktpending-call-failed#comment_670779
Direct link to this comment
https://www.mathworks.com/matlabcentral/answers/234615-error-occurred-while-executing-external-mode-mex-file-ext_comm-exttargetpktpending-call-failed#comment_1314287
Direct link to this comment
https://www.mathworks.com/matlabcentral/answers/234615-error-occurred-while-executing-external-mode-mex-file-ext_comm-exttargetpktpending-call-failed#comment_1314287
Sign in to comment.