Filter löschen
Filter löschen

Will actxserver run in a 64bit MATLAB

11 Ansichten (letzte 30 Tage)
wanrong wang
wanrong wang am 4 Sep. 2020
Kommentiert: wanrong wang am 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 Kommentare
jin huang
jin huang am 12 Okt. 2020
Hi,the code can run in MATLAB2019a,I got a picture in my PC.
wanrong wang
wanrong wang am 19 Apr. 2021
Thanks. Jin. It works now.

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Community Treasure Hunt

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

Start Hunting!

Translated by