Issues when exporting Creo Model with Simscape toolkit

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

Answers (1)

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.

Categories

Products

Release

R2022b

Asked:

on 20 Aug 2024

Answered:

on 3 Oct 2024

Community Treasure Hunt

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

Start Hunting!