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