Connecting to xPC Target machine takes too long time

2 次查看(过去 30 天)
Hi,
I have a model containing a communication block with serial ports (RS422) for xPC target. The other blocks are standard simulink blocks and I have three simple s-functions.
The compilation, downloading and connecting times were normal at the beginning. However, after a few days I started to have some problems with connecting to the target machine. It takes too long time to connect (7-8 minutes sometimes). I am trying to connect in external mode with TCP/IP. I did not add any new blocks to the model, just changed some parameters and modified the blocks.
Can somebody help about this?
Suleyman

回答(2 个)

Arnaud Miege
Arnaud Miege 2011-6-28
HTH,
Arnaud

Süleyman
Süleyman 2011-6-28
Arnaud,
Thank you for your advice. I searched about the problem in the internet and found not the same but similar problems. Finally, I decided to remove all the files and folders that Matlab created at the compilation time. Only the model and the c-files that s-functions in the model use left in the directory. Then I built model again and the problem was solved. Now, it takes 3-6 seconds to connect the target model via external mode again, it was about 7-8 minutes when the problem arose.
Suleyman

标签

Community Treasure Hunt

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

Start Hunting!

Translated by