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

回答(1 个)

Saurabh
Saurabh 2024-10-3
Hi @Zach,
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.

类别

Help CenterFile Exchange 中查找有关 Simscape Multibody 的更多信息

产品


版本

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by