Products & Services Solutions Academia Support User Community Company

Learn more about Vehicle Network Toolbox   

Using the CAN Tool

Viewing Messages on a Channel

To view messages on a channel:

  1. Open the CAN Tool and select the device and channel connected to your CAN bus from the Channel list.

  2. The CAN Tool defaults to the bus speed set in the device driver. You can also configure a new bus speed. See Configuring the Channel Bus Speed

  3. Click Start.

Click Pause to pause the display.

Click Stop to stop the display.

Configuring the Channel Bus Speed

Configure the bus speed when the speed of your network differs from the default value of the channel. You require initialization access for the channel to configure the bus speed, otherwise the option is disabled. If you enter an invalid value, it will return to the last valid value.

To configure a new bus speed:

  1. Type the desired value in the Bus Speed field.

  2. Press Enter.

Saving the Message Log File

To save a log file of the messages currently displayed in the window click Export Messages. The tool saves the messages in a MATLAB file in your current working directory.

Each time you export the messages to a file, CAN Tool saves them as VNT CAN Log.mat with sequential numbering.

Viewing Unique Messages

To view the most recent instance of each unique message received on the channel, click Show only unique messages. In this view, you will not see messages scroll up, but each message refreshes its data and timestamp with each new instance.

Use this feature to get a snapshot of the IDs of messages that selected channel receives. Use this information to analyze the specific messages.

When the Show only unique messages check box is selected, the tool continues to receive message actively. This simplified view allows you to focus in on specific messages and analyze them.

To export messages when the Show only unique messages check box is selected, click Pause and then click Export messages. You cannot save the unique message list, but this operation saves the complete message log in the window.

  


Recommended Products

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.

 © 1984-2009- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS