How do I extract or call a set of data like PSD(particle size distribution) to Matlab from Aspen Plus using Actxserver without using Excel?

1 次查看(过去 30 天)
I have been assigned a project which works by linking Aspen Plus with Matlab. What my work is to extract multiple data points to matlab using actx server. For example, I was able to get temperature & pressure data as they are single variable whereas, for Particle Size Distribution(PSD) data it cosists of an array of elements. We have mess sizes & mole fraction of crystals. How do I tell matlab to get that data from Aspen Plus? Please help me with this doubt. Currently using Aspen V12 version.

回答(1 个)

praguna manvi
praguna manvi 2024-9-12
Hi Gopi,
As per my understanding, you are trying to link Aspen Plus with MATLAB through COM. There is a File Exchange submission that provides a utility to link Aspen Plus with MATLAB. It uses "actxserver" and includes an example. You could use Apwn.Document to create an object which can be used to extract data as follows:
Aspen = actxserver('Apwn.Document.36.0'); % 36.0 corresponds to V10.0
You can refer to a detailed example at this link on File Exchange:
Hope this helps!

类别

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

产品


版本

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by