Simulink External Mode: Connect to target via CAN interface

1 visualización (últimos 30 días)
Götz Lipphardt
Götz Lipphardt el 12 de Oct. de 2016
Comentada: Götz Lipphardt el 14 de Oct. de 2016
Hello,
I am trying to use Simulink External Mode with a TI C2000 hardware board. The connection for external mode is supposed to run over a CAN bus interface. I followed the example provided in c28_ccp_ert. In this example a Vector CAN hardware interface is assumed. However, I would like to use a CAN hardware interface provided by PEAK instead.
I downloaded the required PEAK hardware package both from MathWorks and from PEAK and I also Have the Vehicle Network Toolbox installed. The PEAK CAN hardware is up and running. I can see it in Matlab using GetHWInfo. However, when running the above mentioned example, it always complains about a missing Vector dll-file. It looks as if usage of Vector hardware is somehow hardcoded into the model.
Is there any way to change the communication to make usage of the PEAK CAN hardware instead of Vector hardware?
Any clue is highly appreciated.
Best regards,
Goetz

Respuestas (1)

Brian McKay
Brian McKay el 13 de Oct. de 2016
Hi,
External mode with C2000 is using the Vector CAN libraries, so it wont work with your PEAK CAN hardware.
You can use the C2000 CAN library blocks to talk to and interface with any CAN device (including PEAK).
-Brian
  1 comentario
Götz Lipphardt
Götz Lipphardt el 14 de Oct. de 2016
Hello Brian,
thank you for your answer. Thought so already. That should be changed or made clear in the documentation at least.
Regards,
Goetz

Iniciar sesión para comentar.

Community Treasure Hunt

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

Start Hunting!

Translated by