EventToCode

This block outputs a binary code that defines the ports through which the block has been activated.

    EventToCode

Library

Activate/ActivationOperations

Description

This block outputs a binary code that defines the ports through which the block has been activated. Every input port has its own binary code.

For more details, see the section on Activation in the Extended Definitions for Advanced Users.

Parameters

EventToCode_0

NameLabelDescriptionData TypeValid Values

nevin

Number of input event ports

Scalar integer value. Defines the number of input event ports on the block. Default is 2.

Number

Ports

NameTypeDescriptionIO TypeNumber

Port 1

activation

input

nevin

Port 2

explicit

output

1

Advanced Properties

NameValueDescription

always active

no

direct-feedthrough

no

zero-crossing

no

mode

no

continuous-time state

no

discrete-time state

no