How can I get full access to ModelCenter COM Object tools?

2 次查看(过去 30 天)

I am using the software ModelCenter from Phoenix Integration to perform Monte Carlo analysis integrating Excel, Matlab and built-in routines. We are trying to take it a step further and perform customized trade studies by varying parameters one at a time, monitoring specific response variables. For most variables, this can be done with the following generic code:

mcCOM = actxserver('Phoenix.ModelCenter');
mcCOM.invoke('loadFile',<filename>);
mcCOM.invoke('setValue',<variable name>,<variable value>);
mcCOM.invoke('getValue',<variable name>);

Unlike the Excel actxserver connection, typing "mcCOM.invoke" doesn't return anything (returns void), so we are in the dark about what commands we can pass through mcCOM.

I found some documentation about ModelCenter COM Objects using VBA, C++, or JAVA, but cannot figure out how to convert that into Matlab code. I know much of Matlab's underlying code is in JAVA, so is it possible to access the ModelCenter JAVA COM Object tools from Matlab?

I've attached a screenshot of the ModelCenter documentation for some of their JAVA COM Object classes. I am not sure how to use this information to get something working in Matlab. If someone could help me get started with this, I'm sure that I can figure out the rest.

Thank you in advance, ~Josh

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Use COM Objects in MATLAB 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by