Hi, I am looking to link MATLAB to Aspen Adsorption. I know that for Aspen Plus, it is possible to use actxserver(). Does anyone know if the same method can be used for Aspen Adsorption as well?

But i have Aspen Adsorption linking with Excel VBA code is here, if you have any matlab code please share ..

Sub aspenaAdorption()

' Declare variables for the ACM application, document, and simulation

Dim ACMApp As Object

Dim ACMDocument As Object

Dim ACMSimulation As Object

' Create an instance of the ACM application

Set ACMApp = CreateObject("ACM Application")

' Use "ACM Application" for Aspen Custom Modeler

' Use "ADS Application" for Aspen Adsorption

' Make the ACM application visible

ACMApp.Visible = True

' Open the specified simulation document

Set ACMDocument = ACMApp.OpenDocument("C:\Users\user\Desktop\H2_Purification.acmf")

' Set the simulation object to the current simulation in the application

Set ACMSimulation = ACMApp.Simulation

' Set the simulation to run in dynamic mode

ACMSimulation.RunMode = "Dynamic"

' Run the simulation

ACMSimulation.Run (True)

' Check if the simulation was successful and display a message box

If ACMSimulation.Successful Then

MsgBox "Simulation Complete"

Else

MsgBox "Simulation Failed"

End If

' Quit the ACM application

ACMApp.Quit

End Sub

hashtag #aspenAdsorption #Adsorption #AspentechAspenTechnology #MATLAB Coding #optimization #aspen #chemicalengineering Chemical Engineering

More Belbase Ankit's questions See All
Similar questions and discussions