当前位置:网站首页>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
边栏推荐
- /*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*/
- How do microservices aggregate API documents? This wave of show~
- Linked list operation can never change without its roots
- Regular expression
- [untitled]
- Four characteristics and isolation levels of database transactions
- When I forget how to write SQL, I
- 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?
- Basic data types of MySQL
- Read a piece of text into the vector object, and each word is stored as an element in the vector. Convert each word in the vector object to uppercase letters. Output the converted elements in the vect
猜你喜欢
Appscan installation steps
[Galaxy Kirin V10] [server] NUMA Technology
VI text editor and user rights management, group management and time management
Sword finger offer 05 (implemented in C language)
[Galaxy Kirin V10] [desktop] FTP common scene setup
Installation of ES plug-in in Google browser
2022 AAAI fellow release! Yan Shuicheng, chief scientist of sail, and Feng Yan, Professor of Hong Kong University of science and technology, were selected
C language structure to realize simple address book
Rhsca day 11 operation
[Galaxy Kirin V10] [server] iSCSI deployment
随机推荐
Rhcsa day 10 operation
BGP advanced experiment
Learning XML DOM -- a typical model for parsing XML documents
XMIND installation
Dynamic memory management
Student achievement management system (C language)
C language - stack
Software sharing: the best PDF document conversion tool and PDF Suite Enterprise version sharing | with sharing
JMeter common configuration components and parameterization
DCL statement of MySQL Foundation
Dictionaries and collections
OSPF comprehensive experiment
Communication layer of csframework
From programmers to large-scale distributed architects, where are you (2)
Collection of practical string functions
Postman interface test
[Galaxy Kirin V10] [server] grub default password
Strings and characters
shell awk
[Galaxy Kirin V10] [server] system partition expansion