How to receive and visualize CAN Data using CAN explorer?

조회 수: 11 (최근 30일)
Jay Tarunkumar
Jay Tarunkumar 2024년 2월 27일
댓글: Ayush Modi 2024년 3월 14일
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.

답변 (1개)

Ayush Modi
Ayush Modi 2024년 3월 5일
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
Jay Tarunkumar
Jay Tarunkumar 2024년 3월 8일
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 2024년 3월 14일
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 ?

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

제품


릴리스

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by