Info

この質問は閉じられています。 編集または回答するには再度開いてください。

Acquiring adaptor supplied when creating a gpib object.

1 回表示 (過去 30 日間)
Christopher Foy
Christopher Foy 2017 年 7 月 16 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
Hello I would like to get the adaptor type for an established gpib object. Something along the lines of comHandle = gpib('ni',0,18) assert(isvalid(comHandle),'this is not a valid comHandle') adaptor = comHandle.adaptor; %should be 'ni'
Searching through the literature there does not seem to be an easy way to acquire this information. Any help would be appreciated. Thanks.

回答 (1 件)

Amit Doshi
Amit Doshi 2017 年 7 月 18 日
編集済み: Amit Doshi 2017 年 7 月 18 日
Hello Christopher,
Refer the below code example to get the adaptor name:
>> g1 = gpib('ni',0,1);
>> a = g1.instrhwinfo;
>> adaptor = a.AdaptorName

Community Treasure Hunt

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

Start Hunting!

Translated by