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.... ...
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....................................................tsriFnheTr,zelyNaCA........................................ACoN.e..................3.0................................eoNAppAacilnoiteaCrngtiCa.................................................................2........................3.1................................................2..............................................................................ctory...eNwiDerertaeaC4.0CANoe Development Six Step Process........................................................................................................24.1................................................................bata.esaetaeDaCr......................................................................2.4.1.1...2.................................................................................eliFes........................................reatetheDatabaC4.1.2................................Definwtro.k..ehteeN3..................................................................................................4.2..3.......................................................................................................................s.aerCtetDheabateasdeNo4.3.....3.............................................................................................................saesMse....s.genitaerCabataDg4.3.1Creating Database Message Content.........................................................................................................34.3.1.1an Input Switch aaaMsg (switch_1A)........................................................................................3Create 4.3.1.2Create another Input Switch aaaMsg (switch_2A)................................................................................44.3.1.3Create an Output Indicator aaaMsg (Indicator_A)................................................................................54.3.1.4Create Another Message By Duplication..............................................................................................64.3.1.5Create Database Environment Variables for Node AAA .........................................................................74.3.1.6Create Database Variables for Node BBB...............................................................................................94.4A..t1h.e0Datssociate........................................................................................abase...................................4.5................................................................destotheNetwodAdoN..................kr................................01........4.6..............................................................11................................................................ePanelsCreat................4.6.1CgnitaerPawNea....l.ne..................................11........................................................................................4.6.1.1........11...........................................................................................................................ren....DeligesanP4.6.1.1.1 ..............................................................12Adding a Panel Switch, Push Button, and Indicator Switch4.6.1.1.2Creating a Second Panel Using the First Panel as a Template........................................................154.6.1.2................................aPenldEitor............................................................................16................................4.6.1.2.1Adding a Panel Switch ......................................................................................................................164.6.1.2.2Adding a Push Button Switch to the Panel .......................................................................................164.6.1.2.3Adding an Output Indicator ...............................................................................................................174.6.1.2.4Creating a Second Panel Using the First Panel as a Template........................................................184.7Place the Panels into the CANoe Environment ..........................................................................................194.8ateNode..B9e1havioCer..............................r.................................................................................................4.8.1Programming Node AAA Behavior ...........................................................................................................204.8.2Creating an Empty Function For Node BBB .............................................................................................214.8.3Programming Node BBB Behavior ...........................................................................................................235.0................4.......2......................................................................................................................on........oCcnulis6.0Overview of Interrelated CANoe Files ...........................................................................................................247.0Compatibility with Other Source Code Editors ..............................................................................................258.0............................................................2.5.................................ecruoseR.......sddAlnaioit................................9.0..................................................................25....................noCtcat...s................................................................
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 toFile→New 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 toFile→Create 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.