当前位置:网站首页>Canoe: the difference between environment variables and system variables
Canoe: the difference between environment variables and system variables
2022-07-04 10:51:00 【picoasis】
Problem description :CANoe In simulation , How to distinguish between environment variables and system variables .
The problem background : Realization XVehicle Simulation and CAN Two projects of bus simulation , Environment variables and system variables are used respectively , Perform panel control and CAPL Programming . Its usage is very similar , Can be bound to panel Control , Can also be used in CAPL Listening in programming 、 Perform corresponding functions . So what is the difference between the two ? It can't be seen from the simulation example value , The explanation in the book is also very vague . So there is this question .
Come to the conclusion first : There is no difference in function , Are equivalent to global variables , Facilitate software data interaction ; Use system variables first .
Here's why :
1. stay V6.0 The old version before CANoe in , use environment variable Transmit data during software simulation .
2. from CANoe V6.0 Start , use System variables As a way to transmit data in simulation environment independent of specific bus . Decouple the relationship between bus type and variable configuration .
stay CANoe V6.0 after , Not only simulation CAN The Internet , And support LIN、FlexRay And other types of bus simulation .
Environment variables are generally passed DBC Definition , but DBC Generally only used for CAN The Internet .
In Africa CAN Network configuration Engineering , You also need to add extra DBC Specifically used to store environment variables .
For the unified management of variables , Introduce system variables , System variables are stored in CANoe Configuration Engineering (cfg file ) in , This means that system variables are independent of any bus and its database .
3. from CANoe V12.0 after , Environment variables are no longer supported .( For your own use CAN12.0Demo edition , Environment variables are still supported )
difference
At a stage where both can be used , It can be done through the following points distinguish :
sysvar( priority of use ) | envvar | |
Support bus type | Any bus type | only CAN Bus |
Simulation meaning | Node internal parameters (CAPL Program ) | Node I/O The signal ( Panel or real I/O) |
Define the location | Environment window -SysVar | DBC |
Save the location | CANoe Configuration Engineering (cfg file )、 Independent external XML | dbc file |
data type | There are arrays , Yes 32 Wei Wu / signed int | No array , nothing 32 Bit unsigned integer |
Read and write functions | SysGetVariableInt/SysGetVariableFloat/ SysSetVariableInt/SysSetVariableFloat | putValue/getValue |
For more detailed instructions , You can refer to the following two articles , It's very clear :
2. Differences in use :CANoe Operation introduction series ———— System variables and environment variables _ Forever Caiji Xiaozhan's blog -CSDN Blog _canoe System variables and environment variables 3. In depth understanding of CANoe System variables in (System Variables)_ The car Internet thing -CSDN Blog _canoe System variables
END
边栏推荐
- Basic function exercises
- Locust learning record I
- Software testing related resources
- What if the book written is too popular? Author of "deep reinforcement learning" at Peking University: then open the download
- 如果不知道這4種緩存模式,敢說懂緩存嗎?
- DML statement of MySQL Foundation
- Sword finger offer 05 (implemented in C language)
- On binary tree (C language)
- [Galaxy Kirin V10] [server] NUMA Technology
- 1. Circular nesting and understanding of lists
猜你喜欢

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

Dynamic memory management

On binary tree (C language)

Personal thoughts on the development of game automation protocol testing tool

2022 AAAI fellow release! Yan Shuicheng, chief scientist of sail, and Feng Yan, Professor of Hong Kong University of science and technology, were selected

How do microservices aggregate API documents? This wave of show~

Summary of several job scheduling problems

Sword finger offer 05 (implemented in C language)

Recursion and divide and conquer strategy
![[Galaxy Kirin V10] [desktop] printer](/img/ab/066923f1aa1e8dd8dcc572cb60a25d.jpg)
[Galaxy Kirin V10] [desktop] printer
随机推荐
/*Write a loop to output the elements of the list container in reverse order*/
Dictionaries and collections
Collection of practical string functions
BGP advanced experiment
[Galaxy Kirin V10] [desktop] cannot add printer
/*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
Network connection (II) three handshakes, four waves, socket essence, packaging of network packets, TCP header, IP header, ACK confirmation, sliding window, results of network packets, working mode of
Strings and characters
/*Write a function to open the file for input, read the contents of the file into the vector container of string class 8.9: type, and store each line as an element of the container object*/
[Galaxy Kirin V10] [server] set time synchronization of intranet server
[Galaxy Kirin V10] [server] iSCSI deployment
Snake (C language)
Open the neural network "black box"! Unveil the mystery of machine learning system with natural language
Si vous ne connaissez pas ces quatre modes de mise en cache, vous osez dire que vous connaissez la mise en cache?
On binary tree (C language)
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
What is an excellent architect in my heart?
Day06 list job
183 sets of free resume templates to help everyone find a good job
Article publishing experiment