Sie sind auf Seite 1von 4

CANalyzer panel with send functionality

2016-01-25
SN-IND-1-004_CANalyzer_Panel_with_SendFunctionality.pdf

Author(s) Stiller, Markus


Restrictions

Table of contents

1 About this Support Note .................................................................................................................. 1


2 Overview .......................................................................................................................................... 1
2.1 Software requirements ............................................................................................................ 1
2.2 Create a system variable ......................................................................................................... 2
2.3 Create a Panel with a Trackbar ............................................................................................... 3
2.4 Add an event handler with CAPL............................................................................................. 3
3 Contacts ........................................................................................................................................... 4

1 About this Support Note

In the table below you will find the icon conventions used throughout the Support Note.

Symbol Utilization
This icon indicates notes and tips that facilitate your work.

This icon warns of dangers that could lead to damage.

This icon indicates examples.

2 Overview
This Support Note describes the steps for creating a panel with send functionality in CANalyzer.

2.1 Software requirements


CANalyzer 7.2 or higher is required.

SN-IND-1-004_CANalyzer_Panel_with_SendFunctionality.pdf 1
CANalyzer panel with send functionality

2.2 Create a system variable

Select Configuration | System Variables. Click <add> and enter the name of Namespace and
variable and a Data type and press <OK>

SN-IND-1-004_CANalyzer_Panel_with_SendFunctionality.pdf 2
CANalyzer panel with send functionality

2.3 Create a Panel with a Trackbar

Select the Panel Designer (File | Open Panel Designer) and create a new panel. Get the Trackbar
and drop it on the panel frame. Now drag the system variable in environment data and drop it on the
trackbar.

Save the panel and add it to configuration automatically by using the Plus Icon see below:

2.4 Add an event handler with CAPL

Click View | Measurement Setup and add a program node in the send branch

SN-IND-1-004_CANalyzer_Panel_with_SendFunctionality.pdf 3
CANalyzer panel with send functionality

Add the following code to the program node

on sysvar Vector::myTrack
{
message 0x100 msg;

msg.dlc=8;
msg.byte(0) = @this;
output (msg);
}

Save and compile the code and start measurement. Now you can send a message with the desired
value when you change the value in the track bar.

3 Contacts
Please find the contacts of Vector Informatik GmbH and all subsidiaries worldwide via:
http://www.vector.com/vi_addresses_en.html

SN-IND-1-004_CANalyzer_Panel_with_SendFunctionality.pdf 4

Das könnte Ihnen auch gefallen