CAN Bus Data Visualization with CAN Explorer - MATLAB
Video Player is loading.
Current Time 0:00
Duration 3:21
Loaded: 0%
Stream Type LIVE
Remaining Time 3:21
 
1x
  • Chapters
  • descriptions off, selected
  • en (Main), selected
    Video length is 3:21

    CAN Bus Data Visualization with CAN Explorer

    Use the CAN Explorer app in Vehicle Network Toolbox™ to visualize classic CAN protocol data and use CAN FD Explorer app to visualize CAN FD data. When the app is launched, choose your physical or virtual device and use the Configure pane to bind a CAN database (.dbc) file to the app. This file is used to decode messages and their associated signals. Configure the app to visualize the signals you want by adding selected signals to the three scopes that are provided. You can add multiple signals to each scope. Press the Start button to bring the app online. The app will start to decode and display network traffic. View the Messages table to see the raw messages and the Signals table to see the signals and their decoded values. Observe the Signal scopes to see a time domain view of how the signals are changing. Press the Pause, Continue, and Stop buttons to control when you are acquiring the data. Configure the Unique Messages and Delta Time settings to show only specific messages and to see the cycle time for the signals you are observing. Use the Export button to export the decoded data recorded by the app into a MATLAB® timetable for further analysis.

    Published: 5 Jun 2023

    Hello, and welcome to CAN Bus Data Visualization With CAN Explorer. My name is Jeremy Pyle. And I'm a development manager for the vehicle industrial connectivity group here at MathWorks. We're going to take a look at exciting new applications shipping with vehicle Network Toolbox in the R2021A release of Matlab.

    The new apps are called can Explorer and CAN FD Explorer. They can be found in the app section of the MATLAB tool strip in the test and measurement area. You would select CAN Explorer when you're connecting to a system, using classic CAN protocol in CAN FD Explorer when your system is of the CAN FD variety. Here we've already launched CAN Explorer. And we've pre-selected vector virtual device 1, channel 1 as the interface to the CAN system.

    Next we'll look at the app configuration starting with databases. This is where you bind a DBC file to the app to decode messages and signals from the channel. The device channel configuration is for hardware settings. We'll skip that for now. And we'll look at the signal configurations.

    Signal table configuration allows us to move signals from the available list on the left, the configured list on the right, both for the table itself and the scopes. In this case, we're going to add all of the signals available in the database to the table. And you can see they've populated below.

    We can also add signals of choice to the three scopes. Here we're going to add a couple of signals to the top scope. We see that we have the independent axes added for each of them. We're going to add two signals to the middle scope. Notice these signals come from different messages. And finally two signals to the bottom scope, allowing us to visualize all of the signal data.

    Now we're ready to go online. The start button puts the can Explorer app live on the selected device channel. And the flow of information from the network begins. Messages are being displayed in the message table. And signals are being decoded both in the signal table and the scopes.

    We have a variety of control options to use in CAN Explorer. We can pause and continue the acquisition without stopping and resetting it. The unique messages button allows us to modify the display of the message table so that each message is shown on its own row with its latest data. And delta time allows us to change the representation of time.

    In this case, we see the cycle times of the given messages and signals rather than the relative time to when the tool was started. Stopping CAN Explorer takes us offline and holds the information from the last run. We also allow for export options both to generate MATLAB code representative of what the EP did but also exporting the data recorded by the app to the MATLAB workspace.

    Here we have the data exported by CAN Explorer in a workspace variable. It's a MATLAB time table representing the CAN message data fully decoded using the database with message names and signal values for all the communication that happened on the network. Our team is very excited to bring these tools to you. And we look forward to hearing your feedback. We have big plans to expand our vehicle network toolbox capabilities in future releases. Thank you.

    Related Products

    View more related videos