- https://www.mathworks.com/help/matlab/ref/enableservice.html?searchHighlight=enableservice&s_tid=srchtitle_support_results_1_enableservice
- https://www.mathworks.com/help/matlab/ref/actxgetrunningserver.html?s_tid=doc_ta
Issues when exporting Creo Model with Simscape toolkit
1 次查看(过去 30 天)
显示 更早的评论
Hello,
I went through the setup guide for enabling Simscape Multibody Plugin in Creo-Pro/E.
The issue that I'm running into is when I try to export, I receive an error saying that Matlab is not running as an automation server. I have ran Matlab as an Administrator and typed in: regmatlabserver and checked that it was enabled by running [s, msg] = regmatlabserver
What I'm noticing is that when I export, it creates a new matlab command window instance - Is this creating another automation server instance with default permissions?
Creo version: 8
0 个评论
回答(1 个)
Saurabh
2024-10-3
I understand that you are encountering an issue with MATLAB's automation server configuration. When there is a new MATLAB command window instance being created, it may indicate that the automation server is not properly registered or that the instance is not running with the correct permissions.
If a session of MATLAB has already been opened, you can use the MATLAB function "enableservice" to enable/disable MATLAB as an Automation Server. This can be recognized by the "actxGetRunningServer" command in other instances of MATLAB. To enable an instance as an Automation Server, you can execute the following command at the MATLAB Command Prompt:
state = enableservice('AutomationServer', true)
The "actxGetRunningServer" can be used as follows:
h = actxGetRunningServer('matlab.application')
This will allow you to connect to the already existing session of MATLAB.
For more information on the above functions you, visit the following link:
I hope this was helpful.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Simscape Multibody 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!