Simulink is already connected to another real-time model

조회 수: 4 (최근 30일)
chef13
chef13 2012년 11월 27일
Hi, I'm using the real-time target and sometimes I get this error:
*Error occurred while executing External Mode MEX-file 'rtwinext':
Simulink is already connected to another real-time model. It is not allowed to connect to multiple real-time models simultaneously*
The only solution that I can apply is to restart the Computer and this is so bad.
I don't know why. Can you help me?
Thanks a lot!
  댓글 수: 1
Kaustubha Govind
Kaustubha Govind 2012년 11월 27일
Unless you actually are running multiple Real-Time Windows Target models, you might need to contact MathWorks Tech Support about this. It looks like Simulink does not terminate its connection with the RTWT kernel for some reason, but I don't have enough expertise in this area to make a guess.

댓글을 달려면 로그인하십시오.

채택된 답변

Jan Houska
Jan Houska 2012년 11월 29일
This situation may happen if the real-time code terminates in some unusual way and does not properly disconnect from Simulink. To clean up manually without restarting the computer, please type these two commands:
rtclear
rtunload
If this does not help, a more aggresive way is to reinstall the real-time kernel (which cleans up all previous activities):
rtwintgt -setup

추가 답변 (1개)

chef13
chef13 2012년 12월 6일
I wrote first rtunload when MATLAB was simulating and ..oh my God.. Blue SCREEN ERROR and computer shutted down immediately.
Now I try to write first rtclear and then rtunload :) Sorry.

카테고리

Help CenterFile Exchange에서 Target Computer Setup에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by