Support : Knowledge base

Knowledge Base

Welcome to OPAL-RT’s Knowledge Base

OPAL-RT offers a repository of support information for optimal use of its technology.

Loading…

Please note that OPAL-RT knowledge base is not fully optimized for mobile platforms.

For optimal experience, use a desktop computer.

Reference Number: AA-01387// Views: AA-01387// Created: 2018-02-06 04:46:51// Last Updated: 2020-04-16 22:50:28
Communication Protocols
How to solve 64 bit MATLAB offline errors with CAN-DB


Problem:

I try to add a dbc file, using OpCanAc2-CAN-DB PCI controller module in 64 bit  MATLAB 2015b with RT-LAB 11.2.x, but it gets an error shown picture below.

After that,  I copy an xml_findstr.mexw64 from another folders, but it gets another error shown picture below. How can I solve two problems?

 

Solution:

 

1.   Delete the xml_findstr.mexw64 that you copy from another folder.

2.   Compile the mexw file in this path(C:\OPAL-RT\RT-LAB\v11.2.1.100\Simulink\libR2015b\p\candb\@xmltree\private), using the "mex xml_findstr.c" in matlab command window as shown below picture. Then it will generate a new xml_findstr.mexw64 file here.

 

    3. Replace the xml_parser.m in folder: (C:\OPAL-RT\RT-LAB\v11.2.1.100\Simulink\libR2015b\p\candb\@xmltree\private), using attached file.

    4. Repeat to add a dbc file in Softing CAN parsing module. It will work.

 

Keep in mind that this error also can occur the other 64 bit matlab version more than 2015b. We will fix this problem in RT

-LAB 11.2.2.

 

xml_parser.m 14.8 Kb 14.8 Kb