当前位置:网站首页>Canoe learning notes (9) sending module can Ig diagram

Canoe learning notes (9) sending module can Ig diagram

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

Because the sending module is used recently , Learn this module first . Later, the learning notes of other modules will be completed .

CAN IG Usage of modules , Send customized messages or messages in the database to CAN Bus up .

1.CANoe Add... To the project IG modular

stay simulation setup Right click on the interface to select "insert CAN interactive Generator" In the project, a CAN IG modular .

Double click on CAN IG The module opens the configuration page

 2. use CAN IG Send a customized message

There are two main aspects , Definition of message and configuration of sending method .

2.1 Definition of message

stay CAN IG Module first click Add CAN Frame A message is added

After adding , A message configuration bar appears in the first box , Configure the message attributes in the first box , Include ID,Channel Type,DLC etc.

  Set the DLC After data field length , The second box Raw Data The data field corresponding to the byte will appear , You can change the data manually

Such a customized message is configured .

2.2 Trigger mode of message

 CAN IG Support multiple sending methods of messages , Manual , Key , Periodicity, etc . Send manually by default , After the project needs to be started , Click on send The start button under

Click send , Can be in Trace A message record sent is displayed in the window

It opens at CAN IG The first box under the window Trigger A drop-down box , Other triggering methods can be set , Key , Periodicity, etc .

  Set button "a" Is the trigger mode

3. CAN IG Module sends database dbc Message in

 

Click on IG The first option in the module menu bar , It will pop up symbol selection Dialog box , It shows here CANoe Project loaded database

  For example, choose EngineState This message , Attributes of the message (ID,Channel,type etc. ) It will be automatically imported according to the settings in the database . We just need to set The content of the data field and the triggering method of the message that will do .

Different from the customized message ,dbc It can analyze the physical meaning of the message value , We can directly calculate the physical value of the signal contained in the message to be sent (Phys value) Set it up , Also can be Raw Value Set it up .

  stay CAN IG The second box of the module signals bar , It is even possible to set the generation type of the transmission signal to a sine wave , square wave , steep hill , Custom functions, etc

You can click the icon below to set the attributes of the generator , For example, the frequency of a sine wave , Amplitude, etc .

 

 

 

 

 

 

 

 

原网站

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