Will actxserver run in a 64bit MATLAB

2 views (last 30 days)
wanrong wang
wanrong wang on 4 Sep 2020
Commented: wanrong wang on 19 Apr 2021
Dear,
when i try to run the code MATLAB R2019a, it didn't show me any result and the file for Aspen plus didn't get a result. Is this because the actxserver can only run in 32bit MATLAB? So do i need to download another versiob 32bit to run the code?
Thank you so much for the help!
%% Created by Ing. Andrés Felipe Abril. Universidad Nacional de Colombia. Departamento de Ingeniería Química.
%% Linking
Aspen = actxserver('Apwn.Document.34.0'); %34.0 ---> V8.8; 35.0 ---> V9.0; and 36.0 ---> V10.0
[stat,mess]=fileattrib; % get attributes of folder (Necessary to establish the location of the simulation)
Simulation_Name = 'Reactive_Distillation';% Aspeen Plus Simulation Name
Aspen.invoke('InitFromArchive2',[mess.Name '\' Simulation_Name '.bkp']);
Aspen.Visible = 1; % 1 ---> Aspen is Visible; 0 ---> Aspen is open but not visible
Aspen.SuppressDialogs = 1; % Suppress windows dialogs.
Aspen.Engine.Run2(1); % Run the simulation
while Aspen.Engine.IsRunning == 1 % 1 --> If Aspen is running; 0 ---> If Aspen stop.
pause(0.5);
end
  2 Comments
jin huang
jin huang on 12 Oct 2020
Hi,the code can run in MATLAB2019a,I got a picture in my PC.

Sign in to comment.

Answers (0)

Categories

Find more on Biotech and Pharmaceutical in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!