I’m trying to generate in MATLAB Simulink a DLL via the “rtwbuild(‘Modelname’)” command. The generated DLL works fine. If I add to the Simulink model the CAN blocks (CAN Configuration, CAN Pack and CAN Transmit) from the Vehicle Network Toolbox (independent from the hardware type (PEAK or Vector)) the Model is able to send via the CAN USB adapter, also the DLL generation still produces no errors. But if I run this DLL with the same Java environment as before the hole DLL crashes (runs without an error message but doesn’t work). No CAN messages are transmitted and none of the other functions in the DLL are working.
What do I have to do, to get the CAN communication in the DLL running?
As an alternative solution I tried the 64 bit S-Functions witch were provided here:
http://www.peak-system.com/forum/viewto ... 0&start=20
In Simulink I’m also able to send and read CAN Messages. If I now want to generate the DLL with the rtwbuild the Warning:
The S-function 'VdmeDLL/Test CAN/Init_CAN/Initialisieren/If Action Subsystem/S-Function' has the option
SS_OPTION_WORKS_WITH_CODE_REUSE set but it does not have a 'CAN_ResetFilter.tlc' file. The system that it lives in will not be reused
Is displayed for every used S-Function. Do you know where I can get the needed .tlc files? Or do you have another idea. I would prefer the S-Function solution compared to the Vehicle Network toolbox because this solution seems to be more flexible.
I use Matlab 2015b (64bit) with the corresponding Hardware support packages on a Windows 7(64bit) devices.
Thanks and regards
you need to download and install dll file and nd your dll file will be created.
EDIT BY ADMIN - NO LINKS TO EXTERNAL FILES ARE ALLOWED !!