Tektronix Technical Forums are maintained by community involvement. Feel free to post questions or respond to questions by other members. Should you require a time-sensitive answer, please contact your local Tektronix support center here.

Kusb-488B with Matlab and Labview

KUSB and KPCI DAQ Data Acquisition Products
Post Reply
eteralrock
Posts: 4
Joined: October 28th, 2015, 3:00 pm
Country: United States

Kusb-488B with Matlab and Labview

Post by eteralrock » October 28th, 2015, 3:14 pm

Hi all,

Just tried to install a Kusb-488B GPIB-usb adaptor on a Win7 system. Need to use labview and matlab for controlling different instruments. I opted for the driver compatible for NI. Now it seems labview works fine with the Kusb-488B but matlab does not. When I try the gpib() function it pumps the error message: "cannot load the Keithley gpib interface, pls check if necessary driver has been installed".

I am aware of the 32-bit compatibility problem and the matlab 2015b used is a 32-bit version. Any suggestions how to install the driver so that labview and matlab can both work with Kusb-488B? NI gpib cards surely does not have such problems.

Thanks.

Andrea C
Keithley Applications
Keithley Applications
Posts: 1281
Joined: October 15th, 2010, 10:35 am
Country: United States
Contact:

Re: Kusb-488B with Matlab and Labview

Post by Andrea C » October 29th, 2015, 4:08 am

Suggestion: since you selected the NI compatible command set when installing the KUSB-488B software, see if Matlab can use an NI GPIB interface rather than a Keithley GPIB interface.

Joseph V
Keithley Applications
Keithley Applications
Posts: 107
Joined: July 1st, 2014, 10:31 am
Country: United States

Re: Kusb-488B with Matlab and Labview

Post by Joseph V » October 29th, 2015, 7:17 am

Since you've installed the NI compatible driver your best option is to use VISA based commands to establish a resource name.
Attached is a quick .m file where I used a KUSB-488B.
Attachments
IDN.zip
(289 Bytes) Downloaded 1201 times

eteralrock
Posts: 4
Joined: October 28th, 2015, 3:00 pm
Country: United States

Re: Kusb-488B with Matlab and Labview

Post by eteralrock » October 29th, 2015, 10:18 am

Thanks a lot.

I am wondering what if I chose the other driver. Would that be compatible with matlab but not with NI?

eteralrock
Posts: 4
Joined: October 28th, 2015, 3:00 pm
Country: United States

Re: Kusb-488B with Matlab and Labview

Post by eteralrock » October 29th, 2015, 10:30 am

Joseph V wrote:Since you've installed the NI compatible driver your best option is to use VISA based commands to establish a resource name.
Attached is a quick .m file where I used a KUSB-488B.

Tried this. Didn't work. Says "cannot create VISA object. The required drivers may not be installed properly." Is there additional drivers to install, keithley or NI, to make VISA work?

Also tried GPIB command with NI as vendor name. Didn't work either.

Joseph V
Keithley Applications
Keithley Applications
Posts: 107
Joined: July 1st, 2014, 10:31 am
Country: United States

Re: Kusb-488B with Matlab and Labview

Post by Joseph V » October 29th, 2015, 1:09 pm

Make sure that you have NI VISA installed.

http://www.ni.com/download/ni-visa-14.0.1/5023/en/

This is the version that is currently on my computer which was used to create the *idn? program.

eteralrock
Posts: 4
Joined: October 28th, 2015, 3:00 pm
Country: United States

Re: Kusb-488B with Matlab and Labview

Post by eteralrock » October 29th, 2015, 1:32 pm

I installed the NI-VISA 15.0 driver, and that solved the problem. Thanks everyone.

Post Reply

Return to “Keithley DAQ Data Aquisition Products”

Who is online

Users browsing this forum: No registered users and 3 guests