当前位置:网站首页>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
边栏推荐
- Idea SSH channel configuration
- Collection of practical string functions
- Ten key performance indicators of software applications
- [Galaxy Kirin V10] [server] soft RAID configuration
- Remove linked list elements
- /*The rewriter outputs the contents of the IA array. It is required that the type defined by typedef cannot be used in the outer loop*/
- Software testing related resources
- 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
- Common system modules and file operations
- F12 clear the cookies of the corresponding web address
猜你喜欢
Canoe - the second simulation project -xvihicle1 bus database design (operation)
JMeter common configuration components and parameterization
Basic data types of MySQL
What is an excellent architect in my heart?
Remove linked list elements
Virtual machine configuration network
Discussion | has large AI become autonomous? Lecun, chief scientist of openai
Rhcsa learning practice
Seven examples to understand the storage rules of shaped data on each bit
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
随机推荐
如果不知道這4種緩存模式,敢說懂緩存嗎?
Postman interface test
Locust installation
Huge number multiplication (C language)
Recursive method to achieve full permutation (C language)
From programmers to large-scale distributed architects, where are you (2)
[testing theory] thinking about testing profession
Introduction to extensible system architecture
DDL language of MySQL database: create, modify alter, delete drop of databases and tables
Software sharing: the best PDF document conversion tool and PDF Suite Enterprise version sharing | with sharing
On binary tree (C language)
Introduction to tree and binary tree
C language structure to realize simple address book
Fundamentals of database operation
Student achievement management system (C language)
MPLS: multi protocol label switching
Snake (C language)
Jianzhi offer 04 (implemented in C language)
How to use diff and patch to update the source code
Software testing related resources