Main Content

Log Event

Log an execution profiling event

  • Library:
  • Simulink Real-Time / Profiling

  • Log Event block

Description

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

Ports

Input

expand all

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.

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
Introduced in R2020b