当前位置:网站首页>Canoe - the second simulation engineering - xvehicle - 2 panel design (operation)
Canoe - the second simulation engineering - xvehicle - 2 panel design (operation)
2022-07-04 10:50:00 【picoasis】
This article is detailed Xvehicle engineering Panel Detailed operation steps of design , If you want to understand the relevant ideas or principles, please check CANoe- The first 2 A simulation project -XVehicle—2Panel Design ( principle , Ideas )_lamanchas The blog of -CSDN Blog
This article is from 《CANoe Development from entry to mastery 》.
Catalog
Key steps summary
2.3 Engine switch control ( Engine control module )
2.4 Speed control slider ( Engine control module )
2.5 Left 、 Right door control switch ( Door control module )
2.6 Text controls for left and right doors ( Door control module )
3.1 Engine running status display (engine)
3.2 Vehicle speed information display (engine)
3.3 Display the vehicle speed value (engine)
Key steps
- Add system variables ——System Environment——NameSpace:Engine(EngineStateSwitch,EnginSpeedDspMeter,EngineSpeedEntry)
- add to Control panel ——Panel Add the control in charge of control ( Door control , Engine control )
- add to Display panel ——Panel Add the control responsible for display ( Door display , Engine display )
- establish Desktop—— Create a new one DeskTop Tab , hold control Panel window ,Display Panel window ,write window ,Trace Put the windows together , Easy to test and observe .
Control
among Panel Pictures used by controls in , The image file location is local C:\Users\Public\Documents\Vector\CANoe\Sample Configurations 12.0.75\Programming, The software is automatically saved in C disc . Different versions CANoe, The name and location of the picture may be different .
These pictures are multi frame pictures : It is made up of several pictures with the same format , It can realize the dynamic display of button and indicator status .

Step1 Add system variables
In order to achieve X-Vehicle Functions of simulation engineering , The following will be in X-Vechile Add system variables based on the project .
stay CANoe Select... From the main interface Environment→System Variables.
Right click in the upper left window and select New, Create a new one EngineStateSwitch The system variable of , Configure as shown below :

In the figure ,Namespace Medium Engine Represents the name of a set of system variables . Use the same method to create the other two system variables :EngineSpeedDspMeter and EngineSpeedEntry, After creation, see the figure

Step2 add to Control panel
After adding and configuring the panel , The final effect will be as follows Shown :

Next, add and configure step by step .
2.1 Create panels
stay Panel Designer Select... On the interface File→New Panel Open a new panel , Stored as Control.panel.
Next, we will add engine control and door control controls to this panel .

2.2 add to GroupBox
According to the number and size of controls , Readers can tell Panel Make some adjustments to the size of , Simultaneous addition 4 individual Group Box( Combo box ), After reasonable planning , Under the layout effect of the panel

2.3 Engine switch control ( Engine control module )
Add switch

Configuration properties


Picture location :C:\Users\Public\Documents\Vector\CANoe\Sample Configurations 12.0.75\Programming\Python\CANoeConfig\Panels\Bitmaps\ControlIgnition.bmp

Follow a similar approach , Continue adding two Switch/Indicator、 One Track Bar And two Static Text.
2.4 Speed control slider ( Engine control module )
add controls

Configure controls


2.5 Left 、 Right door control switch ( Door control module )
add to

To configure


The configuration of left and right doors is different : Right door Association symbol by Door_R, Other same .
Picture file :C:\Users\Public\Documents\Vector\CANoe\Sample Configurations 12.0.75\Programming\Bitmap_Library\Automotive\Switches_2States\lDoorLocked_2.bmp
![]()
2.6 Text controls for left and right doors ( Door control module )
add to

To configure

thus , Control panel configuration is complete .
Step3 add to Display panel
Display The panel will be used to display the switch status of the engine 、 Engine speed and door status .
In order to display the engine and door status more vividly , You need to make two multi frame pictures , be used for Switch/Indicator Control Control display effect .
Add configurations in turn Group Box、Switch/Indicator、AnalogGauge1、Static text、Input/Output Box. After the configuration is completed, see the figure below Shown .

GroupBox Set skip .
3.1 Engine running status display (engine)
add to

To configure

Picture location :C:\Users\Public\Documents\Vector\CANoe\Sample Configurations 12.0.75\Programming\Python\CANoeConfig\Panels\Bitmaps\DisplayCar.bmp( Different versions CANoe The file name and location may be different )

3.2 Vehicle speed information display (engine)
add to

To configure



3.3 Display the vehicle speed value (engine)
add to

To configure



3.4 Door status display
add to

To configure


among , The picture file cannot be found in the local folder , I made one of the following , Placement position :
C:\Users\Public\Documents\Vector\CANoe\Sample Configurations 12.0.75\Programming\Bitmap_Library\Global\Indicator_2States\iDoorOpenclose.bmp

Step4 establish Desktop
Desktop( desktop ) Allow users to create a configuration to put a certain type of window they often use together , Easy to measure
Try and observe . stay CANoe In the main interface , Right click Desktop The label of , Create a new one called CAN Of
Desktop, take Control and Display Add two panels , And set the window to MDI Windows Pattern .
In order to observe relevant events , At the same time, you can add Write Windows and Trace Window to this Desktop in , Such as
As shown in the figure

Set each window by MIDI Pattern

thus ,XVehicle engineering Panel Design complete .
If you run the project at this time , Although it can run , But you will find that most of the functions of simulation have not been realized , This is because simulation engineering does not add implementation functions CAPL Code . Is the next part .
END
边栏推荐
- What is an excellent architect in my heart?
- MFC document view framework (relationship between classes)
- How to use diff and patch to update the source code
- /*Rewrite the program, find the value of the element, and return the iterator 9.13: pointing to the found element. Make sure that the program works correctly when the element you are looking for does
- Software sharing: the best PDF document conversion tool and PDF Suite Enterprise version sharing | with sharing
- Interview and lecture summary 1
- 183 sets of free resume templates to help everyone find a good job
- Day06 list job
- Static comprehensive experiment ---hcip1
- Rhcsa day 10 operation
猜你喜欢

JMeter Foundation
![[Galaxy Kirin V10] [server] NUMA Technology](/img/9b/65466c6fc6336e27e842f50c26b9c3.jpg)
[Galaxy Kirin V10] [server] NUMA Technology

20 minutes to learn what XML is_ XML learning notes_ What is an XML file_ Basic grammatical rules_ How to parse

shell awk
![[Galaxy Kirin V10] [desktop] can't be started or the screen is black](/img/68/735d80c648f4a8635513894c473860.jpg)
[Galaxy Kirin V10] [desktop] can't be started or the screen is black

Discussion | has large AI become autonomous? Lecun, chief scientist of openai

Jemeter script recording

Four characteristics and isolation levels of database transactions

Deepmind proposed a Zuan AI, which specially outputs network attack language
![[Galaxy Kirin V10] [desktop] FTP common scene setup](/img/f6/e4fbfe69a6a7635ee6364114c46fd8.jpg)
[Galaxy Kirin V10] [desktop] FTP common scene setup
随机推荐
Network connection (III) functions and similarities and differences of hubs, switches and routers, routing tables and tables in switches, why do you need address translation and packet filtering?
Send a request using paste raw text
Write a program to judge whether the elements contained in a vector < int> container are 9.20: exactly the same as those in a list < int> container.
MFC document view framework (relationship between classes)
Introduction to tree and binary tree
[Galaxy Kirin V10] [server] KVM create Bridge
shell awk
Deepmind proposed a Zuan AI, which specially outputs network attack language
[Galaxy Kirin V10] [desktop] cannot add printer
[test theory] test phase analysis (unit, integration, system test)
RHCE day 3
Snake (C language)
Hlk-w801wifi connection
Personal thoughts on the development of game automation protocol testing tool
From programmers to large-scale distributed architects, where are you (2)
OSPF summary
Ten key performance indicators of software applications
Interview and lecture summary 1
183 sets of free resume templates to help everyone find a good job
Article publishing experiment