Issues when exporting Creo Model with Simscape toolkit

1 Ansicht (letzte 30 Tage)
Zach
Zach am 20 Aug. 2024
Beantwortet: Saurabh am 3 Okt. 2024
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

Antworten (1)

Saurabh
Saurabh am 3 Okt. 2024
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.

Kategorien

Mehr zu Simscape Multibody finden Sie in Help Center und File Exchange

Produkte


Version

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by