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 Center および File ExchangeInstrument Connection and Communication についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by