Hello 260068845@qq.com,
For the first question, could you share the model you are using to see what the problem is with running PIL mode? You can share a stripped version of the model if you cannot share all of it, just so I can replicate the issue. That error means that the protocol Simulink uses for PIL communication is not respected by both parties [host PC and embedded target].
For the second question, could you give me some more details so I can test it on your setup? Or as close I can get to it on my side.
Kind regards,
Razvan.