Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Does Mac OS X work with GPIB-USB-HS?

Solved!
Go to solution

Hi,

 

I downloaded two versions of drivers for Mac OS X (10.6.5) for this GPIB-USB-HS connector.

 

https://www.ni.com/en-us/shop/model/gpib-usb-hs.html

 

There was a 2.5.5 and a 2.5.6 and both of them appeared to fail.  The installation claimed it was complete, but then the Mac OS displayed a dialog saying it "was installed improperly".  I've attached a screenshot.

 

I have not programmed a GPIB device before, so I'm not sure what I'm looking for.  If it were working, would I see a device file in /dev and open it like a serial device?  Or would I include a header file and link to some library?

 

I'm trying to write a basic C program to use SCPI to talk to a Keithley 2400 sourcemeter.

 

thanks,

Rob

 

Screen shot.png

Message 1 of 13
(8,721 Views)
Solution
Accepted by topic author RobNk

I think this is due to a bug in our installer script, which can cause Mac OS X to detect the new file before we have finished settings its file permissions. I believe that your driver is probably installed properly. Go ahead and try running the troubleshooting utility that should be present in the Applications folder, and see if it recognizes your hardware.

 

-Jason S.

 

 

 

0 Kudos
Message 2 of 13
(8,715 Views)

 


@JasonS' wrote:

... Go ahead and try running the troubleshooting utility that should be present in the Applications folder, and see if it recognizes your hardware.


 

Okay, that seems to work.  It shows a GPIB0 and the status is “passed”.   

 

I also compiled the Mach-o Sample.c and ran it, I got the errors below.  A problem? 

 

thanks,

Rob

 

 

ibwrt Error
ibsta = 0x8100  < ERR CMPL >
iberr = 2 ENOL <No Listener>
ibcntl = 0
ibrd Error
ibsta = 0x8000  < ERR >
iberr = 23
ibcntl = 0
ibonl Error
ibsta = 0x8000  < ERR >
iberr = 23
ibcntl = 0

 

 

 

0 Kudos
Message 3 of 13
(8,677 Views)

That example is specificaly trying to send a *IDN? query to the device at primary address 2. The errors you have listed look like you do not have an instrument connected with that primary address.

 

-Jason S.

0 Kudos
Message 4 of 13
(8,654 Views)

Okay, it all works now. 

Message 5 of 13
(8,640 Views)

 I see the same error message. When I run the troubleshooting utility it says the NI488.2 software is not correctly installed... I reinstall it, but same problem. Please help!

 

MacBook Pro OS 10.6.7 2.3Ghz intel core i7

0 Kudos
Message 6 of 13
(8,235 Views)

This problem may be caused by running a 64-bit kernel. NI-488.2 currently requires a 32-bit kernel in Mac OS X. For more information about configuring this for your system, please refer to Apple's 64-bit kernel frequently asked questions.

 

-Jason S.

Message 7 of 13
(8,228 Views)

That worked!

 

Thanks!!!

0 Kudos
Message 8 of 13
(8,224 Views)

Hi JasonS,

 

The Troubleshooting Wizard sees the GPIB-USB-HS and says it passes. However, the "ready" light on the interface is amber. Should it be green?

 

Thanks,

 

Michael

0 Kudos
Message 9 of 13
(8,212 Views)

Update;

 

The "ready" light is still yellow. I can send commands that put my gbib instruments into "remote" mode. I can send a command that tells me how many gpib devices are listening. But nothing else works. Any advice?

 

Thanks,

 

Michael

 

 

0 Kudos
Message 10 of 13
(8,209 Views)