Deleting objects from TMTool after clearing from workspace

조회 수: 1 (최근 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 CenterFile Exchange에서 Web Services에 대해 자세히 알아보기

제품


릴리스

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by