当前位置:网站首页>Canoe - the second simulation engineering - xvehicle - 2panel design (principle, idea)
Canoe - the second simulation engineering - xvehicle - 2panel design (principle, idea)
2022-07-04 10:50:00 【picoasis】
Catalog
How—— Design / To configure Panel Control
Xvehicle In Engineering Panel Design process
Project description
Simulation Engineering X-Vehicle:
The project includes three ECU:Engine、Door and Display.
adopt Control Panel to simulate engine state switching 、 Speed adjustment and door Switch operation , At the same time Display The relevant status is displayed on the panel .
Previous review
Operate in the previous article (CANoe- The first 2 A simulation project -XVehicle—1 Bus database design ( Ideas )_lamanchas The blog of -CSDN Blog ) in , We define the data in the database , Created XVehicle Each part of the project ECU( door , engine , Monitor )、CAN Bus 、 Signals needed for communication 、 message 、 Variable , And the correlation between communication signals and communication nodes . As shown in the figure below :
| Communication nodes ——ECU | |
| Communication message —— environment variable | |
| Communication message —— message | |
| Communication message —— The signal | |
| Communication network —— structure | |
Communication network —— Communication nodes | |
Communication network —— Of each communication node Signal receiving and sending | |
Why— Panel design
thus ECU Communication definition completed , What this section does is : Realize simulation Control and Display panel .
Complete the definition of communication network , Next, we need to communicate on the network .
The process of communication involves signal transmission , The received signal shows the state change . So how to make each ECU Signal , And how to make ECU Show your state changes after the signal is sent , Today's main work —— Panel design .
The panel is mainly in the form of visual controls , Simulate components . This is for the operation of components , The status display of components will be more intuitive .
such as , Switch this part ( stay panel It is called a control in ), stay panel As shown in the figure below , By configuring its properties , It can be completed by clicking the mouse ‘ open ’ Signals and ‘ Turn off ’ The transmission of signals . Drag and drop Speed Control's slider , Change the engine speed .
And such as , Dashboard control , After the engine receives the corresponding signal , It can visually display the current speed .
What—— Panel design
By the example above , We can find out , Switches and dashboards , One is signaling , One is to show the signal . This is also one of the control classification standards in the panel .
Controls can be divided by control and display 2 Kind of : Control controls 、 Display controls .
among , Control controls , Used to correlate signals 、 System variables 、 environment variable .
Display controls , For real-time display The signal 、 Variable 、 The value of the diagnostic parameter .
The main controls are :
A detailed explanation of the control functions can be found below : CANoe And Panel Designer Use (CANoe Series II )_ The first 55 Little white duck's blog -CSDN Blog _canoe panel panel
How—— Design / To configure Panel Control
Panel Control configuration has two important parts :
One is , Configure the control's own properties , Such as display style , typeface , Signal format ( Value range , step ); If it is a control control , that There are also control methods ( For example, what kind of mouse operation does the switch control use , On behalf of 、 Turn off ); If it is a display control , Then configure the display image ( Such as door status , When receiving the signal of opening the left door , Use picture presentation )
The other is to select the control to associate Symbol.Panel Controls and these Symbol Connected to a , signify Panel Control is connected to the previously defined communication network :Panel Control will be from these Symbol Get the information you need , Or to these Symbol Write the information you want to send . The specific implementation of sending and receiving is through ECU Upper CAPL Programming to realize , It will be described in the next section ( Write a link here ).
among Symbol There are two types of : One is Signal, One is Variable. After selecting the type to associate , And then Symbol Select the specific variables in this type to associate .
PS:Variable It also includes environment variables 、 System variables . environment variable It is related to the project dbc Created in the , and System variables Is in CANoe Project toolbar Environment Under the System Variables Created in the .( The functional difference between the two is also a point , Preemptive pit , Write a link and put it here )
Xvehicle In Engineering Panel Design process
The steps are summarized as follows :
- Add system variables ——SystemEnvironment——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 .
Please move the specific steps (https://blog.csdn.net/lamanchas/article/details/122168798)
Result——Panel Design
After the above steps are completed , The control and display panel is defined , And connected to the communication network .
Then we can use the graphical interface , It is very convenient to change the value of signal or variable , And visually check the output status of the system .
END
边栏推荐
- Basic function exercises
- leetcode1229. Schedule the meeting
- How to quickly parse XML documents through C (in fact, other languages also have corresponding interfaces or libraries to call)
- Regular expression
- Crawl Zhejiang industry and trade news page
- Terms related to hacker technology
- Latex error: missing delimiter (. Inserted) {\xi \left( {p,{p_q}} \right)} \right|}}
- OSPF summary
- Const's constant member function after the function; Form, characteristics and use of inline function
- Rhcsa day 9
猜你喜欢
![[Galaxy Kirin V10] [desktop] printer](/img/ab/066923f1aa1e8dd8dcc572cb60a25d.jpg)
[Galaxy Kirin V10] [desktop] printer

Deepmind proposed a Zuan AI, which specially outputs network attack language
![[Galaxy Kirin V10] [server] KVM create Bridge](/img/a4/a35a276d13e194cefc547607c59f00.jpg)
[Galaxy Kirin V10] [server] KVM create Bridge

Latex error: missing delimiter (. Inserted) {\xi \left( {p,{p_q}} \right)} \right|}}
![[Galaxy Kirin V10] [desktop and server] FRP intranet penetration](/img/54/7d1b8b7b8226e2820635dd04b92d1c.jpg)
[Galaxy Kirin V10] [desktop and server] FRP intranet penetration

DML statement of MySQL Foundation

The bamboo shadow sweeps the steps, the dust does not move, and the moon passes through the marsh without trace -- in-depth understanding of the pointer

IPv6 comprehensive experiment

The most detailed teaching -- realize win10 multi-user remote login to intranet machine at the same time -- win10+frp+rdpwrap+ Alibaba cloud server

Linked list operation can never change without its roots
随机推荐
[Galaxy Kirin V10] [server] soft RAID configuration
Appscan installation error: unable to install from Net runtime security policy logout appscan solution
Idea SSH channel configuration
Using Lua to realize 99 multiplication table
[machine] [server] Taishan 200
DML statement of MySQL Foundation
DDL statement of MySQL Foundation
For and while loops
Performance test process
Static comprehensive experiment ---hcip1
Iterator generators and modules
Online troubleshooting
[test theory] test phase analysis (unit, integration, system test)
Latex error: missing delimiter (. Inserted) {\xi \left( {p,{p_q}} \right)} \right|}}
IPv6 comprehensive experiment
Add t more space to your computer (no need to add hard disk)
RHCE - day one
[untitled]
2022 ape circle recruitment project (software development)
Rhsca day 11 operation