MATLAB unable to connect to Aspen HYSYS: Busy Status

2 次查看(过去 30 天)
Hi
I connect my MATLAB 2020a with HYSYS V10 using the following command:
Con=actxserver('HYSYS.Application');
When I write this command my MATLAB gives 'Busy' status and never connects with HYSYS. To stop the process, I have to shutdown the MATLAB becaue it never recovers from that Busy state.
I tried the same thing on another computer (with MATLAB 2019a) and with a different simulation case but every time the MATLAB gets the Busy state. It neither connects with HYSYS neither it recovers from it.
Note: I am an intermediate level MATLAB user. I know all the preliminaries for MATLAB to connect with HYSYS. My MATLAB was working fine with the HYSYS just a day ago. This weired thing has started to happen just today. I am clueless why it is happening.
Looking forward to your support.
Regards,
ZR

采纳的回答

Zaid Rana
Zaid Rana 2021-8-3
Hi Everyone,
I happened to figure out the solution to this problem myself. Here it is for you guys.
I was trying to set standard ideal liquid volume flow of a stream using the following command:
stream1=Flowsheet.Streams.Item('feed');
flow_rate=500;
feed_flow=stream1.IdealLiquidVolumeFlow.SetValue(flow_rate,'barrel/hr');
There was a problem in using the "IdealLiquidVolumeFlow", whenever MATLAB tried to execute this line of code, it would go into an unending Busy status and the HYSYS simulation would stop responding. Even on restarting the MATLAB and HYSYS, the MATLAB would now go into an unending Busy status again even on trying to connect them by executing just the following command:
Con=actxserver('HYSYS.Application');
This happens because a background sever application of Aspen HYSYS continues to work even the main simulation application is closed. To reset the applications, I used the windows task manager to close all HYSYS related processes. Then I specified another process condition 'mass flow' of the stream to execute my process. That's it!

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Numerical Integration and Differential Equations 的更多信息

产品


版本

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by