fopen function shows error and tmtool doesn't connect to the instrument when I am trying to talk to Keithley multimeter 2000. (I am using Matlab Instrument Control Toolbox via KUSB-488B.) Can anyone help?
9 views (last 30 days)
Show older comments
Hello,
I am trying to talk to my Keithley multimeter 2000 through the Keithley GPIB-USB adapter 488B. My Matlab is R2017a and InstrumentControLToolbox (3.11). I used the Keithley provided NI-compatible driver, as shown in the screenshots, and I used the KI-488 Diagnostic Tool to initialize the GPIB board.
The GPIB interface and instrument can be found on the device manager, NI-VISA, Keithley GPIB configuration Utility, but it can't be found on NI-MAX (see screenshot).
I can also talk to the instrument with Visa Interactive Control (see screenshot).
However, tmtool cannot find any GPIB board and wouldn't connect with my instrument. It shows a error message, as shown in the screenshots.
I also created an instrument object g1 in matlab and tried to use the fopen function, but it keeps showing error too: " Unsuccessful open: GPIB: NI: The specified board is not installed or configured properly.", as the code below shows.
I have been working on this for a while now and I feel quite stuck, it is frustrating. I am new to Matlab and I will greatly appreciate it if anyone can help.
if true
% >> get(g1,{'BoardIndex','PrimaryAddress','SecondaryAddress'})
ans =
1×3 cell array
[0] [16] [0]
% >> fopen(g1)
Error using icinterface/fopen (line 83)
Unsuccessful open: GPIB: NI: The specified board
is not installed or configured properly.
% instrhwinfo('gpib','ni')
ans =
HardwareInfo with properties:
AdaptorDllName: 'C:\Program Files\MATLAB\R2017a\toolbox\instrument\instrumentadaptors\win64\mwnigpib.dll'
AdaptorDllVersion: 'Version 3.11'
AdaptorName: 'ni'
InstalledBoardIds: [1×0 double]
ObjectConstructorName: {}
VendorDllName: 'gpib-32.dll'
VendorDriverDescription: 'NI-488'
Access to your hardware may be provided by a support package. Go to the Support Package Installer to learn more. end
2 Comments
Chandani Madnani
on 5 Oct 2017
Create a VISA gpib resource with the string 'GPIB0::16::INSTR' and see if that helps:
vg = visa('ni', 'GPIB0::16::INSTR'); fopen(vg);
Please see the documentation at: http://www.mathworks.com/help/instrument/working-with-the-gpib-interface.html
If that doesn't work, attach 'instrsupport.txt' file to the post generated after executing the following command
>>instrsupport
Answers (0)
See Also
Categories
Find more on Instrument Connection and Communication in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!