Aspen Plus Simulation

0 views
Skip to first unread message

Jacinda Saleeby

unread,
Aug 3, 2024, 5:55:34 PM8/3/24
to iltuageco

I am trying to establish a connection between R and Aspen Plus (a chemical process simulator). I have succeeded in making the connection between MATLAB and Aspen Plus ( -aspen-plus-matlab-link), but not with R.

I have asked this same question to the Aspen Tech Suport Center. Here is there answer: The Aspen Plus Windows user interface is an ActiveX Automation Server. The ActiveX technology (also called OLE Automation) enables an external Windows application to interact with Aspen Plus through a programming interface using a language such as Microsoft's Visual Basic. The server exposes objects through the COM object model. If the R programming language can interact with the COM interface, then it should work. Any ideas?

Thank you Mara. I'm using the RDCOMClient package, but still without much success. In matlab I would use the actxserver() function (to create a COM server) and the invoke() function (to invoke a method in the COM object). I'm just not being able to do the same in R;

I have successfully used this technique to open an Excel file, write to a cell which itself triggers a proprietary API available only as an Excel add-in, get the results in Excel, write those to a file and finally read this file in R.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.

c80f0f1006
Reply all
Reply to author
Forward
0 new messages