Acquiring adaptor supplied when creating a gpib object.
Info
This question is closed. Reopen it to edit or answer.
Show older comments
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.
Answers (1)
Amit Doshi
on 18 Jul 2017
Edited: Amit Doshi
on 18 Jul 2017
0 votes
Hello Christopher,
Refer the below code example to get the adaptor name:
>> g1 = gpib('ni',0,1);
>> a = g1.instrhwinfo;
>> adaptor = a.AdaptorName
This question is closed.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!