CANoe Tutorial
25 pages
English

CANoe Tutorial

-

Le téléchargement nécessite un accès à la bibliothèque YouScribe
Tout savoir sur nos offres
25 pages
English
Le téléchargement nécessite un accès à la bibliothèque YouScribe
Tout savoir sur nos offres

Description


CANoe Tutorial
Version 2.0
2008-07-25
Application Note AN-AND-1-112

Restrictions Public Document
Abstract This is a step-by-step tutorial to introduce the basic process of developing a simple CANoe application.
Used as a guide, the beginning user will get up the curve quickly. In addition to the tutorial, a short set of
helpful CANoe topics is also presented.


Table of Contents
1.0 Overview ..........................................................................................................................................................2
2.0 First CANalyzer, Then CANoe.........................................................................................................................2
3.0 Creating a CANoe Application2
3.1 Create a New Directory..2
4.0 CANoe Development – Six Step Process........................................................................................................2
4.1 Create a Database.........2
4.1.1 Create the Database File............................................................................................................................2
4.1.2 Define the Network......3
4.2 Crease Nodes..........................................................................................................................3
4.3 Creating Database Messages.......................................................................................................................3
4.3.1 Creating Database Message Content.... ...

Sujets

Informations

Publié par
Nombre de lectures 3 075
Langue English

Extrait

 CANoe Tutorial Version 2.0 2008-07-25 Application Note AN-AND-1-112 
 Restrictions Public Document Abstract This is a step-by-step tutorial to introduce the basic process of developing a simple CANoe application. Used as a guide, the beginning user will get up the curve quickly. In addition to the tutorial, a short set of helpful CANoe topics is also presented.   Table of Contents 1.0 ................................erviOv....ew..................................................................................2.................................... 2.0 ..........2.................................................... tsriFn he Tr,zelyNaCA........................................ACoN.e.................. 3.0 ................................eoNAppA acilnoiteaCrngti C a.................................................................2........................ 3.1 ................................................2..............................................................................ctory...eN wiDererta e aC 4.0 CANoe Development – Six Step Process........................................................................................................2 4.1 ................................................................bata.esaetaeD a Cr......................................................................2. 4.1.1 ...2.................................................................................eliF es........................................reate the DatabaC 4.1.2 ................................Definwtro.k.. eht eeN3.................................................................................................. 4.2 ..3.......................................................................................................................s.aerCt et Dheabate asdeNo 4.3 .....3.............................................................................................................saes Mse....s.genitaerCabataD g 4.3.1 Creating Database Message Content.........................................................................................................3 4.3.1.1 an Input Switch – aaaMsg (switch_1A)........................................................................................3Create  4.3.1.2 Create another Input Switch – aaaMsg (switch_2A)................................................................................4 4.3.1.3 Create an Output Indicator – aaaMsg (Indicator_A)................................................................................5 4.3.1.4 Create Another Message – By Duplication..............................................................................................6 4.3.1.5 Create Database Environment Variables for Node AAA .........................................................................7 4.3.1.6 Create Database Variables for Node BBB...............................................................................................9 4.4 A. .t1h.e 0Datssociate........................................................................................abase................................... 4.5 ................................................................des to the NetwodA doN..................kr................................01........ 4.6 ..............................................................11................................................................e PanelsCreat................ 4.6.1 C gnitaerPaw Nea ....l.ne..................................11........................................................................................ 4.6.1.1 ........11...........................................................................................................................ren.... DeligesanP 4.6.1.1.1  ..............................................................12Adding a Panel Switch, Push Button, and Indicator Switch 4.6.1.1.2 Creating a Second Panel Using the First Panel as a Template........................................................15 4.6.1.2 ................................aPen ldEitor............................................................................16................................ 4.6.1.2.1 Adding a Panel Switch ......................................................................................................................16 4.6.1.2.2 Adding a Push Button Switch to the Panel .......................................................................................16 4.6.1.2.3 Adding an Output Indicator ...............................................................................................................17 4.6.1.2.4 Creating a Second Panel Using the First Panel as a Template........................................................18 4.7 Place the Panels into the CANoe Environment ..........................................................................................19 4.8 ate Node. .B9e1havioCer..............................r................................................................................................. 4.8.1 Programming Node AAA Behavior ...........................................................................................................20 4.8.2 Creating an Empty Function For Node BBB .............................................................................................21 4.8.3 Programming Node BBB Behavior ...........................................................................................................23 5.0 ................4.......2......................................................................................................................on........oCcnulis 6.0 Overview of Interrelated CANoe Files ...........................................................................................................24 7.0 Compatibility with Other Source Code Editors ..............................................................................................25 8.0 ............................................................2.5.................................ecruoseR.......sddAl naioit................................ 9.0 ..................................................................25....................noCtcat...s................................................................ 
Copyright © 2008 - Vector CANtech, Inc.CANtech, Inc. Contact Information: www.vector-cantech.com or ++1-248-449-9290
1
  
CANoe Tutorial  
   1.0 Overview This application note is a step-by-step tutorial to introduce the basic process of developing a simple CANoe application. Used as a guide, the focus is to help the beginning user get up the curve quickly. In addition to the tutorial, a short set of helpful CANoe topics is also presented.
2.0 First CANalyzer, Then CANoe Since CANalyzer is used as a portion of the foundation for CANoe, it is quite beneficial to learn the basic features and operation of CANalyzer first before learning CANoe. The Vector Application Note “Quick Introduction to CANalyzer” (see Section 8, "Additional Resources") is a helpful guide for those also beginning with CANalyzer.
3.0 Creating a CANoe Application In this step-by-step tutorial, we will develop a simple application to primarily teach the CANoe development process.
3.1 Create a New Directory 1) Before starting up CANoe, create a new directory called "new1" to contain the new configuration. Consider locating this directory close to the CANoe application directory. 2) Start CANoe and use the main menu to go toFileNew Configuration. A prompt appears to select a template. Choose the one that fits the situation, or if you are not sure, select the default template. 3) Go toFile Configuration As Save. Name the file "new1.cfg" using a path to the new directory name. Then click[OK].
4.0 CANoe Development – Six Step Process The creation of a new CANoe application involves six key steps. 1) Create a Database 2) Create Nodes 3) Associate the Database 4) Create Panels 5) Place the Panels into the CANoe Environment 6) Create Node Behavior
4.1 Create a Database
4.1.1 Create the Database File 1) On the CANoe toolbar, click the CANdb++ Editor button (the one with 4 interconnected red nodes) to launch the integrated database tool. 2) In CANdb++ Editor, go toFileCreate Database. A prompt appears to select a template. Choose the one that fits the situation, or if you are not sure, select the empty template. For this tutorial, we will select the empty template. 3) Save the file as a DBC file called "new1.dbc" in the directory just created.
 Application Note AN-AND-1-112   
2
  • Univers Univers
  • Ebooks Ebooks
  • Livres audio Livres audio
  • Presse Presse
  • Podcasts Podcasts
  • BD BD
  • Documents Documents