Borrar filtros
Borrar filtros

How to receive and visualize CAN Data using CAN explorer?

9 visualizaciones (últimos 30 días)
Jay Tarunkumar
Jay Tarunkumar el 27 de Feb. de 2024
Comentada: Ayush Modi el 14 de Mzo. de 2024
I am using the matlab version R2023b and i am trying to visualize CAN data using CAN explorer , I was following the article https://au.mathworks.com/help/vnt/ug/use-can-explorer-data-reception-visualization.html# for Visualization but i am encountering issues with signal scopes, As i load the dbc file in the database and configure the signal table and I try to run it , nothing happens there is no value being shown in signal table and there is no change in graph , I thought maybe its the dbc files that are not accurate and i tried using the test file of can explorer but even in that there was no change and i am encountering this issue with every single dbc file that i use it in the CAN explorer, if someone can help me with this issue it would be a huge help.
I have attached a screenshot of the issue that i am encountering for the reference.

Respuestas (1)

Ayush Modi
Ayush Modi el 5 de Mzo. de 2024
Hi Jay,
I am assuming, after setting up the scope, you started the monitoring from the toolstrip. This enables the MathWorks Virtual Channel to receive the data. However, you need to send the data separately for it to appear in the Message table or scope at the receiver end.
Please follow the section Replay Pre-Recorded CAN Data of the below MathWorks documentation to send and receive the data in the same MATLAB instance:
Hope this helps!
  2 comentarios
Jay Tarunkumar
Jay Tarunkumar el 8 de Mzo. de 2024
I did try to send the data , I think the issue is i am loading the dbc file in database and signals wont appear because there are no can frames running in the background. I am trying on mathworks virtual instance , I tried sending and receiving data by creating 2 virtual instances i am able to decode the messages but i am not able to visualize them in can explorer because of the loopback instance , i tried looping the CAN packets in the script and then running the dbc file in can explorer there was still nothing on signal scope. I took a dbc file from github repository and a log file of the same dbc file and saved it as a csv file and i tried running a script where i will loop the packets and simulate the dbc file in the can explorer but so far i havent got any success .
Ayush Modi
Ayush Modi el 14 de Mzo. de 2024
I have used the .dbc file from the example you mentioned. After I started monitoring, I was seeing this:
So I stopped the monitoring. Ran the "replayCANData.m" file from the example. After that, I started monitoring again. I was able to see the plot:
Could you try the same with the .dbc file from the example ?

Iniciar sesión para comentar.

Categorías

Más información sobre Vehicle Network Toolbox en Help Center y File Exchange.

Productos


Versión

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by