From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

GPIB-USB with Mac Lion?

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.

 

0 Kudos
Message 1 of 4
(3,419 Views)

Hi,

 

you can use this tool to check if the driver is installed correctly and the device is working fine

 

Kind regards

Carsten

0 Kudos
Message 2 of 4
(3,403 Views)

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.

 

0 Kudos
Message 3 of 4
(3,401 Views)

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.

Message 4 of 4
(3,383 Views)