Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

Acquiring adaptor supplied when creating a gpib object.

1 visualización (últimos 30 días)
Christopher Foy
Christopher Foy el 16 de Jul. de 2017
Cerrada: MATLAB Answer Bot el 20 de Ag. de 2021
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.

Respuestas (1)

Amit Doshi
Amit Doshi el 18 de Jul. de 2017
Editada: Amit Doshi el 18 de Jul. de 2017
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