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
-
- Posts: 4
- Joined: October 28th, 2015, 3:00 pm
- Country: United States
Kusb-488B with Matlab and Labview
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.
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.
-
- Keithley Applications
- Posts: 1262
- Joined: October 15th, 2010, 10:35 am
- Country: United States
- Contact:
Re: Kusb-488B with Matlab and Labview
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.
Re: Kusb-488B with Matlab and Labview
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.
Attached is a quick .m file where I used a KUSB-488B.
- Attachments
-
- IDN.zip
- (289 Bytes) Downloaded 1078 times
-
- Posts: 4
- Joined: October 28th, 2015, 3:00 pm
- Country: United States
Re: Kusb-488B with Matlab and Labview
Thanks a lot.
I am wondering what if I chose the other driver. Would that be compatible with matlab but not with NI?
I am wondering what if I chose the other driver. Would that be compatible with matlab but not with NI?
-
- Posts: 4
- Joined: October 28th, 2015, 3:00 pm
- Country: United States
Re: Kusb-488B with Matlab and Labview
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.
Re: Kusb-488B with Matlab and Labview
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.
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.
-
- Posts: 4
- Joined: October 28th, 2015, 3:00 pm
- Country: United States
Re: Kusb-488B with Matlab and Labview
I installed the NI-VISA 15.0 driver, and that solved the problem. Thanks everyone.
Who is online
Users browsing this forum: No registered users and 6 guests