Deleting objects from TMTool after clearing from workspace

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일

0 개 추천

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일

0 개 추천

Hi Daniel,
You can try instrreset to disconnect and delete all the instrument objects.
Thanks

댓글 수: 1

Turns out I forgot that 'instrfind' returns all the handles. Therefore,
fclose( instrfind( 'Status', 'open' ); delete( instrfind );
works.

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Instrument Connection and Communication에 대해 자세히 알아보기

제품

릴리스

R2020b

질문:

2021년 3월 15일

편집:

2021년 5월 4일

Community Treasure Hunt

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

Start Hunting!

Translated by