Canoe6


For the push button switch,

1)   Under Layout Æ Size, if the above image is used, set the width to 31 and height to 27.

          2)   Assign the environment variable “aaaSwitch_2A” to the switch

          3)  Add a static text and replace "Description" with "aaaswitch_2A". For the indicator switch
4)   Under Layout Æ Size, if the above image is used, set the width to 75 and height to 23.

5)   Under Settings Æ Display Only, change it to “True”.

6)   Assign the environment variable “aaaIndicator_A” to the switch.

7)   Add a static text and replace “Description” with “aaaIndicator_A”.


Now finally,

1)   Click the gray box; white sizing boxes should appear at the right and bottom. Point the cursor at the bottom-right corner white box. The cursor should change into a line with two arrowheads Click and drag the corner to make the panel bigger or smaller.

2)   Then, save the newly created panel by going to File Æ Save Panel….

3)   On the Panel Designer main toolbar, click on the icon with the blue meter and the ‘+’ sign. This will add the panel to the configuration file opened in CANoe.

In CANoe, the panel should have appeared with the window title of “aaa”. It should look like this:



 4.6.1.1.2           Creating a Second Panel Using the First Panel as a Template

Making a second panel using the first panel as a template is quite simple.

1)   If the Panel Designer is still running, make sure all the changes have been saved to the first panel before the second panel is created. If not, start the Panel Designer application and open the first panel, "aaa.xvp".

2)   Go to File Save Panel As.

3)   Save the panel as "bbb.xvp" in the “new1” directory. Click [Save].

4)   On the left side, Symbol Explorer should be open. Expand the drop down list under Filtered by: and select “Environment Variables”. The list of environment variables should now be displayed on the left.

5)   Expand the “Environment variables list, click and drag bbbSwitch_1B” into the rocker switch. This should assign the environment variable to the rocker switch.

6)   Change the static text from “aaaSwitch_1A” to “bbbSwitch_1B”.

7)   Click and drag “bbbSwitch_2B” into the push button. This should assign the environment variable to the push button.

8)   Change the static text from “aaaSwitch_2A” to “bbbSwitch_2B”.

9)   Click and drag “bbbIndicator_B” into the indicator button. This should assign the environment variable to the indicator button.

10) Change the static text from “aaaIndicator_A” to “bbbIndicator_B”.

11) Now, save the panel by going to File Save Panel.

12) On the main toolbar, again click on the icon with the blue meter and the +’ sign. This will add the panel to the configuration file opened in CANoe.

13) Exit the Panel Designer.

4.6.1.2        Panel Editor

1)   To open the Panel Editor, select File Æ Open Panel Editor.

2)   On the menu bar of the Panel Editor, go to Options Window setting.., which opens the Window size, name, colors, and fonts dialog. All we will do here for now is to give the panel a name. For the panel name, use "aaaPanel".  Click [OK].

3)   On the menu bar, select File  Save As. Using the extension .cnp and the path to the “new1
directory, name the file "aaa.cnp". Click [OK].


4.6.1.2.1           Adding a Panel Switch

1)   Click the switch icon on the toolbars (looks like a light switch with a red dot at the bottom of the switch) or select the menu item Elements Switch. As the pointer enters the panel design area (within the white box) it changes to a rectangle with a cross at the upper left corner. Click anywhere in the panel design area to place the switch.

2)   Right click on the switch and select Configure.

3)   Give the element any name.

4)   In the Symbol section of the Configure Switch window, expand the drop down list and select “EnvVar”.
Then, scroll through the list of environment variables and select "aaaSwitch_1A" to establish a link between the graphic element and the environment variable in the associated database. Click [OK].

5)   Click the text icon on the toolbar a white square with a capital T in it and click anywhere within the panel design area to place a text box. Move the text box to the right of the switch.

6)   Right-click on the text box and select Configure. Give the element any name desired. In the Text
section, replace “Static Text” with “aaaSwitch_1A”. Click [OK].

7)   Stretch the text box by clicking on any of the side lines of the box and dragging it to an appropriately large size so all of the text is visible.


4.6.1.2.2           Adding a Push Button Switch to the Panel

1)   Click the push button icon on the toolbar (an elevated gray square), or select the menu item Elements
Push button. Click anywhere within the panel design area to place the push button and move the push button so that it is under the first switch.

2)   Right click on the push button and select Configure.

3)   Give the element any name.

4)   In the Text section of the dialog, replace "Button" with "Sw2".

5)   In the Symbol section of the Configure Switch window, expand the drop down list and select “EnvVar”.
Then, scroll through the list of environment variables and select "aaaSwitch_2A" to establish a link between the graphic element and the environment variable in the associated database. Click [OK].

6)   Click the text icon on the toolbar a square with a capital T in it and move the mouse over the panel design area. As the pointer enters the panel design area it changes to a rectangle with a cross at the upper left corner.

7)   Click anywhere within the panel design area to place the text box. Move the text box to the right of the push button.

8)   Right-click on the text box and select Configure. Give the element any name desired. In the Text
section, replace “Static Text” with “aaaSwitch_2A”. Click [OK].

9)   Stretch the text box by clicking on any of the side lines of the box and dragging it to an appropriately large size so all of the text is visible   
4.6.1.2.3           Adding an Output Indicator

1)   Click the bitmap switch icon on the toolbar (has 0, I, II vertically on its right side), or select the menu item Elements Bitmap Switch/Indicator.

2)   Click anywhere within the panel design area to place the indicator. Move this element under the push button.

3)   Right click on the indicator and select Configure.

4)   Give the element any name.

5)   Under the State Processing section, select 2 states and set the Switch Value to ‘1’.

6)   Under the Symbol section, expand the drop down list and select “EnvVar”. Then, scroll through the list of environment variables and select aaaIndicator_A” to establish a link between the graphic element and the environment variable in the associated database. Click [OK].

7)   Click the text box icon on the toolbar – a white square with a capital T in it – and move the mouse over the panel design area. As the pointer enters the panel design area it changes to a rectangle with a cross at the upper left corner.

8)   Click anywhere within the panel design area to place the text box. Move the text box to the right of the push button.

9)   Right click on the text box and select Configure. Give the element any name desired. In the Text
section, replace “Static Text” with “aaaIndicator_A”. Click [OK].

10) Stretch the text box by clicking on any of the side lines of the box and dragging it to an appropriately large size so all of the text is visible.


Finally,

1)   Point the cursor at the bottom right corner of the black line. The cursor should change into a line with two arrowheads. Click and drag the corner to make the panel bigger or smaller.

2)   Then, save the newly created panel by going to File Æ Save….


At this point, we have finished our panel design using Panel Editor, as shown below in Figure 12.

No comments:

Post a Comment