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!