Simulink is already connected to another real-time model
9 views (last 30 days)
Show older comments
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 Comment
Kaustubha Govind
on 27 Nov 2012
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.
Accepted Answer
Jan Houska
on 29 Nov 2012
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
0 Comments
More Answers (1)
See Also
Categories
Find more on Target Computer Setup in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!