GPIB access with Mac Lion (10.7.2) ?

1 Ansicht (letzte 30 Tage)
Wilfried
Wilfried am 16 Jan. 2012
Hello,
I like to access an instrument via GPIB in Matlab on Mac OS X 10.7.2 (Lion). I have installed all the necessary soft- and hardware. I am using an NI GPIB-USB-HS interface. I installed both Matlab 32 and 64-bit versions. I cannot access the GPIB with either Matlab version, but with the provided NI software.
I get the following messages:
|>> instrhwinfo('gpib')
ans =
InstalledAdaptors: {1x0 cell}
JarFileVersion: 'Version 2.9.0'
|
and
|>> ga = gpib('ni',0,24)
??? Error using ==> gpib.gpib at 150
Unable to load NI GPIB interface. Please check that the necessary drivers are installed on your machine. |
Any idea, what I am doing wrong? The NI support says it is a Mathworks issue...

Antworten (3)

Rob Graessle
Rob Graessle am 16 Jan. 2012
GPIB is not supported on Mac OS in the Instrument Control Toolbox. For 64-bit Mac OS, the Instrument Control Toolbox supports serial, Bluetooth, TCP/IP and UDP. 32-bit Mac OS support is no longer provided across the MATLAB platform.
For MATLAB versions R2009a, R2009b and R2010a, GPIB was supported under 32-bit. You can install a 32-bit version of one of these versions of MATLAB onto a 64-bit OS.
  2 Kommentare
Wilfried
Wilfried am 16 Jan. 2012
There are GPIB commands available... so it must be supported? Maybe I misunderstood your post. It is the NI driver, which requires a 32-bit application. Do I need to "enable" somehow the drivers for Matlab?
Wilfried
Wilfried am 16 Jan. 2012
Sorry, now I got!
It is VISA that needs to be used:
instrhwinfo('visa','ni') does the job!
Sorry, I did not get your post right away. I have always been programming under Windows, which still uses the gpib...

Melden Sie sich an, um zu kommentieren.


Wilfried
Wilfried am 16 Jan. 2012
Thank you for the quick reply.
I do have installed the 32 bit versions of Matlab (R2010a and R2009b). I even re-started OS X in 32 bit mode. I always get the exact same error messages.
I also installed the latest NI drivers for my GPIB interface, which are compatible with 64 bit Lion. But it only runs in 32 bit apps.
Anything else I am missing...?

Laurens Willems van Beveren
does this last post I need to install NI-VISA first before the GPIB-USB-HS will appear in TMTOOL in R2012a?

Kategorien

Mehr zu Instrument Control Toolbox Supported Hardware finden Sie in Help Center und File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by