How to call a variable from aspen to matlab without using EXCEL when variable has no attributes in aspen.

3 ビュー (過去 30 日間)
Gopi
Gopi 2024 年 6 月 7 日
回答済み: Aman 2024 年 6 月 24 日
I have tried calling PSD(particle size distibution ) variable from aspen to matlab but everytime it gives 1 as value and not the set of data like an array. Also, since the PSD variable does not have an attribute to it can it be called through matlab??

回答 (1 件)

Aman
Aman 2024 年 6 月 24 日
Hi Gopi,
As per my understanding, you basically want to exchange the data between ASPEN and MATLAB without using Excel.
There is no out-of-the-box function present in MATLAB that directly does the same, but you can utilize the COM interface to exchange the data. In order to do so, you first need to configure ASPEN to allow COM access, and then you can utilize the "actxserver" function of MATLAB to create a COM server, followed by utilizing it for data fetching.
You can refer to the below file exchange link, where a user has given a sample code for the same:
You can also refer to the below video, where they are doing this step-wise:
I hope this will help you to proceed ahead with your workflow!

カテゴリ

Help Center および File ExchangeUse 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