Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
Problem in vehicle network toolbox - canTool

Subject: Problem in vehicle network toolbox - canTool

From: yusheng Lim

Date: 30 Nov, 2010 12:18:04

Message: 1 of 4

Im faced problem when running my vehicle network toolbox canTool in MATLAB v2009a.

The following is the error:
??? Error using ==> canTool>canTool_OpeningFcn at 58
No CAN interfaces detected.
...
Error in ==> gui_mainfcn at 221
feval(gui_State.gui_OpeningFcn, gui_hFigure, [], guidata(gui_hFigure), varargin{:});

Error in ==> canTool at 34
gui_mainfcn(gui_State, varargin{:});

Can anyone here help me solve this problem to let me start using it? I cant even run the canTool. Thanks.

Subject: Problem in vehicle network toolbox - canTool

From: Jaremy

Date: 1 Dec, 2010 15:52:06

Message: 2 of 4

"yusheng Lim" <yushenglim@yahoo.com> wrote in message <id2q1s$rng$1@fred.mathworks.com>...
> Im faced problem when running my vehicle network toolbox canTool in MATLAB v2009a.
>
> The following is the error:
> ??? Error using ==> canTool>canTool_OpeningFcn at 58
> No CAN interfaces detected.
> ...
> Error in ==> gui_mainfcn at 221
> feval(gui_State.gui_OpeningFcn, gui_hFigure, [], guidata(gui_hFigure), varargin{:});
>
> Error in ==> canTool at 34
> gui_mainfcn(gui_State, varargin{:});
>
> Can anyone here help me solve this problem to let me start using it? I cant even run the canTool. Thanks.

Hello,

This error indicates that the toolbox and MATLAB are not seeing any installed drivers nor CAN hardware. Without an interface to use, CAN Tool will not launch. An easy way to check for properly accessible hardware is to use the canHWInfo function. Given the error you have from CAN Tool, canHWINfo should also report as no interfaces detected.

The usual fix for this issue is to verify the installation of the device drivers for your hardware and the programming library from the hardware vendor. Depending on the vendor and the platform on which you are running, installation may vary.

For Vector devices on 32-bit platforms, the vxlapi.dll file from the XL Driver Library package should be placed in your windows/system32 folder. If you are running 32-bit MATLAB on 64-bit Windows, you want to put the vxlapi.dllfile in the windows/syswow64 folder. In addition, you need the proper devices drivers installed for your hardware.

For Kvaser devices, you should only need to install the latest device drivers. Doing so should place the CAN Lib DLL in the appropriate location automatically.

Regards.

Subject: Problem in vehicle network toolbox - canTool

From: yusheng Lim

Date: 7 Dec, 2010 07:26:05

Message: 3 of 4

Thanks to you. I can run the canTool in 32bit MATLAB 64bits Windows already. Thanks you so much.

Subject: Problem in vehicle network toolbox - canTool

From: yusheng Lim

Date: 1 Jan, 2011 13:06:05

Message: 4 of 4

Jaremy, i would like to ask that,

the vector channel cannot work in laptop with 32-bits platform after i put the vxlapi.dll into the windows/system32...

any solution for it?

??? Error using ==> Utility>Utility.getDriverData at 157
Driver information was unable to be obtained for the device and/or device channel
index.

Error in ==> Channel>Channel.Channel at 186
            tmpDriverData = can.vector.Utility.getDriverData(...

Error in ==> canChannel at 45
            channel = can.vector.Channel('Vector', varargin{2:end});

Tags for this Thread

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us