当前位置:网站首页>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
边栏推荐
- When I forget how to write SQL, I
- Strings and characters
- Performance test overview
- leetcode842. Split the array into Fibonacci sequences
- [Galaxy Kirin V10] [desktop] printer
- [Galaxy Kirin V10] [desktop] build NFS to realize disk sharing
- On binary tree (C language)
- Two way process republication + routing policy
- F12 clear the cookies of the corresponding web address
- [Galaxy Kirin V10] [server] NFS setup
猜你喜欢

How to use diff and patch to update the source code

JMeter common configuration components and parameterization

IPv6 comprehensive experiment

Rhcsa12

OSPF summary

C language - stack
![[Galaxy Kirin V10] [server] set time synchronization of intranet server](/img/f8/0847314029930840c91bce97ccd961.jpg)
[Galaxy Kirin V10] [server] set time synchronization of intranet server

VLAN part of switching technology

Deepmind proposed a Zuan AI, which specially outputs network attack language
![[Galaxy Kirin V10] [desktop and server] FRP intranet penetration](/img/54/7d1b8b7b8226e2820635dd04b92d1c.jpg)
[Galaxy Kirin V10] [desktop and server] FRP intranet penetration
随机推荐
Performance features focus & JMeter & LoadRunner advantages and disadvantages
Evolution from monomer architecture to microservice architecture
What if the book written is too popular? Author of "deep reinforcement learning" at Peking University: then open the download
How to quickly parse XML documents through C (in fact, other languages also have corresponding interfaces or libraries to call)
PHP programming language (1) - operators
Get the data of the top 100 headlines today with Tianxing data
OSPF comprehensive experiment
[Galaxy Kirin V10] [server] FTP introduction and common scenario construction
I What is security testing
Basic data types of MySQL
Personal thoughts on the development of game automation protocol testing tool
Fundamentals of database operation
JMeter assembly point technology and logic controller
Canoe - the second simulation project -xvihicle1 bus database design (operation)
How do microservices aggregate API documents? This wave of show~
Dynamic memory management
[Galaxy Kirin V10] [desktop] printer
[test theory] test phase analysis (unit, integration, system test)
Introduction to extensible system architecture
The most ideal automated testing model, how to achieve layering of automated testing