Main Content

Log Event

Log an execution profiling event

Since R2020b

  • Log Event block

Libraries:
Simulink Real-Time / Profiling

Description

The Log Event block inserts a user-defined event into the execution profiling event stream when triggered. The user-defined event includes a channel ID, a code number, and a value number. The channel ID value ranges from 0 to 1023.

Examples

Ports

Input

expand all

When the T (trigger input) changes from 0 to 1 (Rising) or from 1 to 0 (Falling), the block inserts a user-defined simple event defined by the parameters Channel, Code, and Value into the execution profiling event stream.

Example: 1

Parameters

expand all

Select the event change ID, for example 500.

Programmatic Use

channel

Select the event code number, for example 200.

Programmatic Use

code

Select the event value number, for example 200.

Programmatic Use

value

Select the type of signal change that triggers the block. When the T (trigger input) changes from 0 to 1 (Rising) or from 1 to 9 (Falling), the block inserts a user-defined simple event defined by the parameters Channel, Code, and Value into the execution profiling event stream.

Programmatic Use

trigger

Extended Capabilities

C/C++ Code Generation
Generate C and C++ code using Simulink® Coder™.

Version History

Introduced in R2020b