Instrument Control Using National Instruments GPI-USB-HS

Hello,
I am trying to set up communication between an HP 4195A spectrum/network analyzer and Matlab using a NI GPIB-USB-HS interface. I have downloaded the NI-488.2 driver, and have used that tool to successfully assign my instrument a GPIB address communicate with my instrument. However, I am unable to create the gpib object in Matlab. When I enter: >> instrhwinfo('gpib', 'ni');
I get the error message: ??? Error using ==> instrhwinfo at 234 Specified ADAPTOR was not found or could not be loaded.
Where can I find the missing adaptor? It seems like I need a driver for the NI GPIB-USB interface (.mdd or .dll file). I tried to create a gpib interface object using the tmtool but the only vendor was 'ics' while I need 'ni'. I'd appreciate if someone could send me the driver or give me a possible workaround.
Thanks

2 Comments

update: I have located the NI GPIB driver. I found the file "mwnigpib.dll" in the instrument control toolbox directory (the ics gpib driver is also in that location). It seems as though this driver is not registered. I tried daqregister, but that did not work. Is there a command to register gpib drivers?
Also, there are several gpib drivers in that folder (agilent, ni, ics, iotech, keithley) but for some reason instrhwinfo('gpib') only returns ics.
Did you run daqregister as administrator ?

Sign in to comment.

Answers (0)

Categories

Find more on Instrument Control Toolbox in Help Center and File Exchange

Asked:

on 26 Sep 2011

Community Treasure Hunt

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

Start Hunting!