Aspen Plus & Matlab (command to deactivate/activate a transfer block?)

조회 수: 10 (최근 30일)
Angelica Liponi
Angelica Liponi 2018년 6월 27일
편집: Angelica Liponi 2024년 9월 12일
Hi everyone, I have a model in Aspen Plus that I launch with Matlab to vary some parameters. I want to deactivate a block and then re-activate it (because it helps to reach the convergence). How can I do that?(which is the code) Do you know where I can find a list of useful commands for Matlab-Aspen? Thank you very much.
  댓글 수: 2
WILLIAN
WILLIAN 2024년 8월 30일
Hello, did you find the information anywhere?
Angelica Liponi
Angelica Liponi 2024년 9월 12일
편집: Angelica Liponi 2024년 9월 12일
Hi Willian,
no, unfortunately I haven't find it.
You could try looking if one of the parameters for the block (in my case, it was a transfer block) in the Variable Explorer of Aspen Plus is used for determining if the block is active or not, probably assuming 1/0 (or True/False) as values.
(
The path to call the transfer block is:
Application.Tree.FindNode("\Data\Flowsheeting Options\Transfer\T1")
)

댓글을 달려면 로그인하십시오.

답변 (1개)

Anagha Mittal
Anagha Mittal 2024년 9월 12일
Hi Angelica,
You may use the COM interface to interact with Aspen Plus using MATLAB. The block properties can be accessed using this interface. To create a COM server, "actxserver" functiona can be used. For more details, please refer to the following link:
The functions to activate and deactivate a block can be found in the example mentioned in the "Functions" section of the following File Exchange link:
Hope this helps!
  댓글 수: 1
Angelica Liponi
Angelica Liponi 2024년 9월 12일
Thank you Anagha Mittal, however we need the path or the code to activate/deactivate a block, such as a transfer block.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Conditionally Executed Subsystems and Models에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by