フィルターのクリア

How to remove Sfunction from memory

3 ビュー (過去 30 日間)
Patrick Sullivan
Patrick Sullivan 2015 年 2 月 26 日
コメント済み: Patrick Sullivan 2015 年 2 月 26 日
Hello everyone,
I have a level 2 sfunction in Simulink that calls a FORTRAN based simulation. That FORTRAN simulation writes an output file. What I have always struggled with is the inability to access the output file even after the simulation has been killed using the "close_system 'simulink_mdl_name' ,0" command. It also seems apparrent that the Sfunction hangs on in memory even though the workspace memory is clear. This is particularly bothersome when attempting to call the simulink model in a batch mode.
Is there a way to "flush" the sfunction from memory completely?
Thanks,
Pat Sullivan
  1 件のコメント
Patrick Sullivan
Patrick Sullivan 2015 年 2 月 26 日
Additionally, I don't want to shut down the Matlab session in order to release the grip on the sfunction and output files.
V/r,
Pat Sullivan

サインインしてコメントする。

採用された回答

Jason Moore
Jason Moore 2015 年 2 月 26 日
The clear command should accomplish what you are looking for. If you call the following:
>>clear mex
This will clear all mex items. You can also provide the name of the specific mex function. There are additional clear commands that clear all of a certain object type such as classes and functions. See the following documentation for all of the details
  1 件のコメント
Patrick Sullivan
Patrick Sullivan 2015 年 2 月 26 日
Jason,
I was wondering if that would do it....thanks.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMATLAB Compiler についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by