canoe5

4.4   Associate the Database


1)   Go  to  CANoe  and  select  the  menu  command  Window   Simulation  Setup  to  make  sure  the Simulation Setup window can be seen, if necessary.

2)   Expand the tree list to the right and select Databases. Right-click on it and select Add.

3)   Associate the “new1.dbc” database file.



4.5   Add Nodes to the Network


1)   In the left half of the window, click on the connection lines to the left of the PC Board called "Bus CAN".
Right-click on it and select Insert network node. A new node will appear on the network with the default name "ECU 1".

2)   Right-click on this new node and select Configuration….

3)   Expand the CANdb Name drop down list and select the node name "new1::AAA". Click [Ok]. The node name should change from “ECU 1” to “AAA”. The new node will appear in the tree list to the right.

Add the second node “BBB” in the same manner.


The Simulation Setup window should now look like it does in Figure 7:


We have now created two new nodes with assigned file names, but without any software inside them.


4.6   Create Panels


Designing nodes that use graphic control panels is a major feature of CANoe. These panels can be a data source or sink for system-level or node-level I/O. The values of discrete and continuous environment variables can be changed interactively on these panels during the simulation. Signal values can also be changed since Version 5.0 of CANoe.

Overlapping control and display elements can all be placed anywhere on the panel. Each panel control element must have an environment variable or signal from the database assigned to it. We will focus only on environment variables in this tutorial.

Panels are saved in CANoe panel file format (default extension .xvp or .cnp) and can then be loaded in the simulation system.


4.6.1   Creating a New Panel


There are two tools available to create graphic control panels, Panel Designer and Panel Editor. Each tool may be used as a separate application program; however, it is recommended to open them from CANoe so that the database definitions carry over. CANoe Version 7.0 or later is required to use the Panel Designer. If CANoe Version 7.0 or later is not available, or the Panel Editor is preferred, skip to Section 4.6.1.2.


4.6.1.1        Panel Designer

1)   To open the Panel Designer, click on the icon with a blue meter on the main toolbar of CANoe, or simply go to the File menu.
         2)   On the menu bar of Panel Designer, select File Save Panel As.

3)   Using the extension .xvp and the path to the new directory, name the file "aaa.xvp". Click [Save]. “aaa”

will be the title of the Panel when displayed in CANoe


4.6.1.1.1           Adding a Panel Switch, Push Button, and Indicator Switch


To add a panel switch, push button and indicator switch, the steps are exactly the same for each switch. The following steps show how to add a panel switch.

1)   On the top-right side, there should be a Toolbox section. Scroll down the list of Vector Standard Controls and double click on “Switch”. A box with a dashed border should appear in the middle gray box.

2)   On the bottom right side, the properties of this switch should be displayed in the Properties section.

3)   To select an image to use for this switch, scroll down the Properties section. Under the Settings section, click on (highlight) Image. Next, click on the button to the right of “Choose Image and select the image to use.

In our example, the following image will be used:


Note: Only one switch is placed on the panel.  This figure only illustrates that there are three switch states.


4)   Still in the Properties section, scroll upwards from Settings. Under Layout Æ Size, set the width and height of the image. If the above picture is used, then set the width to 35 and height to 50. Otherwise, the width should be the size of one switch state.

5)   Set the State Count to 2 and the Switch Values to ‘0’ for State 1 and ‘1’ for State 2.

6)   Under the Symbol section, scroll down and set the symbol filter to Environment Variable. Next, click on Symbol, and then click on the button to the right of the white box.

7)   A window should appear with the list of environment variables. Expand the Environment variable list, and select “aaaSwitch_1A”, then click [OK].

Note: The environment variable can also be assigned by dragging it from the Symbol Explorer on the left to the switch box. In the Symbol Explorer, expand the drop down list under Filtered by: and select “Environment Variables”. The list of environment variables should now be displayed on the left. Expand the “Environment variables” list, click and drag “aaaSwitch_1A” into the switch.


8)   Under the Toolbox section (upper right), scroll down the list and select “Static Text”. A box with the word “Description” should appear in the middle gray box. Move the text box to the side of the newly created switch.

9)   Under the text box’s properties, double-click on “Description found under Font Æ Text and replace it with “aaaSwitch_1A”.

Note: Standard controls may also be added to a panel by dragging them from the Toolbox and dropping them onto the panel. The above method, however, provides the user with a greater selection variety of images. For example, in this case (a switch), dragging and dropping doesn’t work, because the picture of our multi-stage switch isn’t in the Toolbox.


When adding the pushbutton and indicator switch, the above steps will be followed except for a few minor changes to go along with the tutorial. The illustration below shows the three states of the pushbutton and of the indicator switch used in this case.

No comments:

Post a Comment