Check for instrument objects

조회 수: 1 (최근 30일)
Arun
Arun 2011년 6월 6일
Is there a way to look for existing interface objects prior to creating new ones? For example, if programs don't complete there are often objects in memory still connected to instruments. This causes problems if they are in place when the program is run again.
A better practice would be to make sure no objects exist before creating new ones, but I'm not sure how.
Thanks.

채택된 답변

Gerd
Gerd 2011년 6월 6일
Hi Arun,
what interface objects are you looking for. When you talking about serial communication object you can find them using
instrfind
Gerd
  댓글 수: 1
Arun
Arun 2011년 6월 6일
Hi Gerd,
I'm using both serial and VISA objects, but it looks like instrfind works on both. A delete(instrfind) command clears out all interface objects - exactly what I was looking for. Thanks.
Arun

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Instrument Connection and Communication에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by