How to fix error in Simulink / ADAMS co-simulation: "Could not connect to ADAMS server"?
显示 更早的评论
I am running co-simulations with Matlab/Simulink and ADAMS and am having problems. For some reason, I have started getting the following error about 90% of the time when running simulations:
Error reported by S-function 'adams_plant' in 'climber_main_model/adams_sub/ADAMS Plant/S-Function': Could not connect to ADAMS server
I can't figure out what the problem is, as I can open up ADAMS by itself with no trouble. I am able to connect to the licencing server too, because our license expires soon and a command window pop up and informs me of such (I wouldn't get this if it wasn't connecting at all, or else how would it know anything about the expiration date of the license?) Does anyone know how I can fix this? It's very frustrating!
4 个评论
Mark
2011-2-3
Context-wise, this is likely related to the block in the error message, "climber_main_model/adams_sub/ADAMS Plant/S-Function". You can confirm this by deleting the block and seeing if the error persists.
Assuming that it is that block, the error is being thrown by the "mex" file associated with the S-function. Do you have the source code for this block?
Chris Zirker
2011-2-4
Arnaud Miege
2011-2-4
This would probably be more appropriate on an ADAMS forum, since the S-function interface between Simulink and ADAMS is not provided by MathWorks. They should be able to help.
Mark
2011-2-4
I'm not sure how the block actually connects to the ADAMS server, but if it uses something like TCP/IP, you could probably use a packet sniffer like WireShark to compare what kind of network traffic patterns are present when you successfully connect and what kind of patters are present when you can't. It might be a network issue, as opposed to something specifically in Simulink or ADAMS, and this that would be a good next step to iron it out.
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Real-Time PID Autotuning 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!