Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Can I use GPIB instruments via GPIB-USB-HS and NI-VISA on MacOS with Matlab somehow?

I've just installed NI-488.2 (14.1) and I can see my GPIB instruments in the NI-MAX app. However I can not find them in the tmtool function in Matlab. Aparently Matlab on mac does not support GPIB (http://se.mathworks.com/help/releases/R2014b/instrument/supported-hardware.html) but it does support VISA. 

 

Do you think there might be a way to connect to my devices in Matlab through VISA some how?

0 Kudos
Message 1 of 5
(5,013 Views)
VISA is an api that sits above GPIB, serial, USB, etc. I don't use Matlab but if you use the appropriate VISA Resource Name, you should be able to communicate. Did you actually install NI-VISA?
0 Kudos
Message 2 of 5
(5,004 Views)

Hi thanks for you answer.

 

Yes, I installed this version: http://www.ni.com/download/ni-488.2-14.1/5090/en/ which says: "NI-488.2 for Mac OS X, Version 14.1, installs NI-VISA and NI-MAX by default". I can also see all the correct .framework-files in the "Library/Frameworks/"-folder:  

And since I can see (and query) the GPIB devices in both the "/Applications/National Instruments/NI MAX.app" and "/Applications/National Instruments/NI-VISA/NI-VISA Configuration.app/

 

HOwever Matlab does not want to detect any VISA drivers...

0 Kudos
Message 3 of 5
(4,998 Views)
Then you should probably ask Mathworks.
0 Kudos
Message 4 of 5
(4,996 Views)

The Instrument control toolbox for Matlab requires a VISA instalation from a third party.  NI VISA is one option.  Keysight I/O Libraries and TekVISA are also supported.  Ive not really looked into Mac OS compatability for any of these (Sorry I'm a Windows type of grunt because thats what my employers use)


"Should be" isn't "Is" -Jay
0 Kudos
Message 5 of 5
(4,989 Views)