Azzera filtri
Azzera filtri

Will actxserver run in a 64bit MATLAB

11 visualizzazioni (ultimi 30 giorni)
wanrong wang
wanrong wang il 4 Set 2020
Commentato: wanrong wang il 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 Commenti
jin huang
jin huang il 12 Ott 2020
Hi,the code can run in MATLAB2019a,I got a picture in my PC.
wanrong wang
wanrong wang il 19 Apr 2021
Thanks. Jin. It works now.

Accedi per commentare.

Risposte (0)

Community Treasure Hunt

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

Start Hunting!

Translated by