Deleting objects from TMTool after clearing from workspace

2 ビュー (過去 30 日間)
Daniel
Daniel 2021 年 3 月 15 日
編集済み: Daniel 2021 年 5 月 4 日
In testing new functions which use visa, we noticed out-of-memory errors when creating and clearing visa objects. This appears to be because they are saved in TMTool as well as the Workspace. Now, if the Workspace variable is cleared, the object remains in TMTool with no handle to delete it. Is there a way to generate new object habdles for TMTool Instrument Objects?

採用された回答

Daniel
Daniel 2021 年 5 月 4 日
編集済み: Daniel 2021 年 5 月 4 日
Turns out I forgot that 'instrfind' returns all the handles. Therefore,
fclose( instrfind( 'Status', 'open' ); delete( instrfind );
works.

その他の回答 (1 件)

Pranav Verma
Pranav Verma 2021 年 3 月 19 日
Hi Daniel,
You can try instrreset to disconnect and delete all the instrument objects.
Thanks
  1 件のコメント
Daniel
Daniel 2021 年 5 月 4 日
Turns out I forgot that 'instrfind' returns all the handles. Therefore,
fclose( instrfind( 'Status', 'open' ); delete( instrfind );
works.

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

カテゴリ

Help Center および File ExchangeWeb Services についてさらに検索

製品


リリース

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by