필터 지우기
필터 지우기

Vehicle Networking Toolbox setup

조회 수: 28 (최근 30일)
Ryan Aldrich
Ryan Aldrich 2011년 4월 13일
댓글: Deepan Srinivasan 2024년 6월 2일
I have the Vehicle Networking toolbox for MATLAB and I am trying to make it recognize a Vector CANcaseXL. I have installed the necessary drivers for the CANcaseXL. However, I cannot establish an open channel between the toolbox and the CANcase. Here is the warning message that I received in the Matlab Command window:
>> info = canHWInfo
CAN Devices Detected:
Kvaser Devices:
Virtual 1 Channel 1
To connect, use - canChannel('Kvaser', 'Virtual 1', 1)
Virtual 1 Channel 2
To connect, use - canChannel('Kvaser', 'Virtual 1', 2)
Use GET on the output of CANHWINFO for more information.
>> canch1 = canChannel('Vector','CANcaseXL 1',1)
Warning: The following error was caught while executing 'can.vector.Channel' class destructor:
Invalid MEX-file 'C:\Program
Files\MATLAB\R2010bSP1\toolbox\vnt\vnt\mexVectorXLDriverLibrary.mexw32': The specified
module could not be found.
I checked the C:\Program Files\MATLAB\R2010bSP1\toolbox\vnt\vnt\ directory and found the right file (mexVectorXLDriverLibrary.mexw32) that needs to be there. If everything was working properly this is what I would see:
>> info = canHWInfo
CAN Devices Detected:
Vector Devices:
CANcaseXL 1 Channel 1 (SN: 24365)
To connect, use - canChannel('Vector', 'CANcaseXL 1', 1)
CANcaseXL 1 Channel 2 (SN: 24365)
To connect, use - canChannel('Vector', 'CANcaseXL 1', 2)
Virtual 1 Channel 1
To connect, use - canChannel('Vector', 'Virtual 1', 1)
Virtual 1 Channel 2
To connect, use - canChannel('Vector', 'Virtual 1', 2)
Kvaser Devices:
Virtual 1 Channel 1
To connect, use - canChannel('Kvaser', 'Virtual 1', 1)
Virtual 1 Channel 2
To connect, use - canChannel('Kvaser', 'Virtual 1', 2)
Use GET on the output of CANHWINFO for more information.
I called Matlab technical support and they said that this is a Vector driver setup issue. Then I called Vector and they said it was a Matlab issue, help!

채택된 답변

Arnaud Miege
Arnaud Miege 2011년 4월 13일
Which drivers are you using? What operating system? Some suggestions:
  1. Make sure that you are using the latest drivers from the Vector website.
  2. Make sure to download the latest XL Driver library.
  3. Make sure that vxlapi.dll is on the system path by adding C:\XL Driver Library\bin to the system path in the Environment Variables.
  4. In the control panel, make sure that the hardware under Vector Hardware is listed and working properly, and that the driver is pointing to the right location.
Also, how old is your CANcase XL? Are using USB 2.0 or 3.0 on your machine? Some older CANcaseXL only work with USB 2.0 and so won't work properly on newer machines. Vector can provide a flash update that updates the boot code in the CANCaseXL to work with both USB 2.0 and 3.0.
HTH,
Arnaud

추가 답변 (2개)

Jaremy
Jaremy 2011년 4월 14일
The likley solution to your issue is that setting up MATLAB for Vector hardware is a two-step process. Step one is to download and install the device drivers, as you have done. Step two is to download and make accessible to MATLAB the vxlapi.dll file from the XL Driver Library package.
Please see the installation instructions in the VNT documentation. They walk you through setting up your machine properly.

Ryan Aldrich
Ryan Aldrich 2011년 4월 15일
Thank you for the suggestions. I took them to my IT guy and he hooked me up.
  댓글 수: 1
Deepan Srinivasan
Deepan Srinivasan 2024년 6월 2일
Any idea, what was done to rectify the source issue?

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Vehicle Network Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by