Inability about connecting a USB2 Device in Matlab Instrument control toolbox
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
I am able to connect and run fopen on a GPIB based instrument but not on a USB2 port based Instrument in Matlab control toolbox; Both of them are visible by "tmtool" and I can run query ("*IDN?")on the USB2 based instrument.
Details attached below - as you can see I can fopen the GPIB based instrument (address 9) but not the instrument with address: USB0::0x0957::0x4D18::MY54030016::INSTR. They both are under NI VISA.
Can anyone tell me if the format creating this USB2 based device object should be different?
>> vhwinfo = instrhwinfo('visa','ni')
vhwinfo =
HardwareInfo with properties:
AdaptorDllName: '/Applications/MATLAB_R2018a.app/toolbox/instrument/instrumentadaptors/maci64/mwnivisa.dylib'
AdaptorDllVersion: 'Version 3.13'
AdaptorName: 'NI'
AvailableChassis: []
AvailableSerialPorts: {'ASRL1'}
InstalledBoardIds: 0
ObjectConstructorName: {3×1 cell}
SerialPorts: {'ASRL1'}
VendorDllName: 'nivisa64.dll'
VendorDriverDescription: 'National Instruments VISA Driver'
VendorDriverVersion: 18
Access to your hardware may be provided by a support package. Go to the Support Package Installer to learn more.
>> vhwinfo.ObjectConstructorName
ans =
3×1 cell array
{'visa('ni', 'USB0::0x0957::0x4D18::MY54030016::INSTR');'}
{'visa('ni', 'ASRL1::INSTR');' }
{'visa('ni', 'GPIB0::9::INSTR');' }
>> vg = visa('ni','GPIB0::9::INSTR');
>> fopen(vg)
>> vm1 = visa('ni', 'USB0::0x0957::0x4D18::MY54030016::INSTR');
>> fopen(vm1)
Error using icinterface/fopen (line 83)
Unsuccessful open: The specified configuration: USB0::0x0957::0x4D18::MY54030016::0::INSTR is not available.
Use INSTRHWINFO for a list of available configurations. Use INSTRFIND to
determine if other instrument objects are connected to the requested instrument.
0 comentarios
Respuestas (0)
Ver también
Categorías
Más información sobre Instrument Control Toolbox Supported Hardware en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!