01-11-2012 12:29 PM
Hi Everyone,
I like to run a number of GPIB-controlled instruments with Matlab on MacBookPro running Lion 10.7.2. I have installed the latest drivers from NI (4882MacOSX301) for my hardware, which is the GPIB-USB-HS interface.
I also installed the 32 bit version of Matlab (R2010a/7.10i).
Neither tmtool nor instrhwinfo find/show any instrument.
Trying gpib('ni',0,24) results in this error message:
>> gpib('ni',0,24)
??? Error using ==> gpib.gpib>gpib.gpib at 155
Unable to load NI GPIB interface. Please check that the necessary
drivers are installed on your machine.
Any idea how to solve this issue?
Thank you.
01-13-2012 02:33 AM
Hi,
you can use this tool to check if the driver is installed correctly and the device is working fine
Kind regards
Carsten
01-13-2012 02:40 AM - edited 01-13-2012 02:41 AM
Thank you for the quick answer and advice.
The Interactive Control shows all connected GPIB instruments and the "*IDN?" query shows the proper names of the instruments. I assume, hence, the drivers are installed properly.
I also have Parallels with Win7. In that VirtualBox everything works as intended even with the 64-bit Matlab.
Working natively in OS X would be, however, the preferred solution.
01-16-2012 02:59 PM
Hi,
The "gpib('ni',0,24)" did not work in my case.
A solution, however, is to use the following command:
obj1 = visa('NI', 'GPIB0::24::0::INSTR');
I figured this out by using the "NI VISA Configuration" tool provided with LabView.