当前位置:网站首页>Canoe learning notes (6) diagram of logging block data recording module

Canoe learning notes (6) diagram of logging block data recording module

2022-06-22 07:09:00 wujiangzhu_ xjtu

Refer to the official tutorial , Collated personal self-study notes , Convenient for future reference .

CANoe It's Germany Vector A bus development environment developed by the company , Full name CAN open environment, It is mainly used for the development of automobile bus .CANoe The purpose of the early stage of CAN Communication network modeling 、 Simulation 、 Testing and development , It's the Internet and ECU Development 、 Professional tools for testing and Analysis .

Reference link :

CANoe/CANalyzer A collection of basic tutorials
Tutorial demo version CANoe 12.0.75
adopt CANoe Measurement Setup Window logging block The module implements data recording .

In a real scenario, the amount of data on the bus is increasing , So many times we need to record the online measurement data to facilitate offline analysis .

Catalog

1.logging block data format

2. logging block Configuration of

 2.1 logging Configuration of log file

3. Recording mode / Trigger mode

 3.1 Full record mode

 3.2 Single trigger recording mode

3.3 toggle Trigger

 4. Practical example

1.logging block data format

Data formats are divided into message oriented and signal oriented :

Message oriented —— .blf and .asc Format    .blf Smaller storage footprint

Signal oriented ——.mdf Format

2. logging block Configuration of

This module needs to be : Record file configuration , Record trigger mode configuration .

logging Module in Measurement Setup Under the window , double-click logging The module configures the triggering mode , Double click the figure below "test01" Location configuration log file , Here is the previous record file named test01 Caused by .

 2.1 logging Configuration of log file

double-click logging On the right side of the module log file Configure log file , You can configure the name of the log file , Record filters, etc , Generally, only file names are used for basic applications , Storage location , Format configuration .

Record file configuration can be set field codes, choice increment by file size Realize that the size of the record file reaches the set value and is automatically stored as the next file .

In the following figure, set the record file every time it reaches 1M Start automatically recording to the next logging file .

3. Recording mode / Trigger mode

double-click measure setup Under window logging modular , Eject trigger / The record mode configuration dialog box is shown in the following figure :

Can be found in mode Select record mode from the drop-down box

logging modes Is when to start / End record , There are three common recording modes :entire measurement,single trigger, toggle trigger

 3.1 Full record mode

Full record mode entire measurement, Start recording at the beginning of the project , End record at the end of the project .

 

 3.2 Single trigger recording mode

single trigger It can be understood as a recording mode in which only one trigger condition needs to be set . The trigger event can be used as the beginning of the recording , As a record of the period of time before and after the event . The pre and post time periods need to be set in advance . You only need an event that triggers the start

3.3 toggle Trigger

and single similar , Contains two trigger events , A trigger starts , A trigger ends

To configure single trigger and toggle trigger,CAPL The trigger needs to be in logging Add before the module program node To trigger

Configure the pre and post time periods

 4. Practical example

step1      measurement setup Window enable logging modular

step2  double-click measurement setup window logging file Configure log file

step3 double-click measurement setup window logging Module set trigger conditions

 step4 The trigger condition is configured as single trigger, Check start The trigger condition , Indicates that... Is triggered when the project starts , However, the end time period still defaults to the end of the project , This is because the default post time period is infinite , It has been recorded since the beginning . Uncheck... In the following figure "infinite post trigger time", And set the time after the time trigger post trigger time by 5000ms. After the project starts , Five seconds . Generally, the default time period before the event is 0S.

 

step5 Run the project after confirmation

See the bottom Write The window shows logging Start and end time of , just 5S,trace The window also happens to record 5S data .

 step6 The generated logging Drag the file to trace window , You can see that the deadline is also 5S about .

原网站

版权声明
本文为[wujiangzhu_ xjtu]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202220539596050.html