Main Content

addBlockNotification

Class:simevents.SimulationObserver
Package:simevents

Add block to list of blocks to be notified

Syntax

addBlockNotification(obj,blkPath)

Description

addBlockNotification(obj,blkPath)is a utility function for adding a block to the list of blocks to be notified. Specify the full path of the block to be added inblkPath.

Input Arguments

expand all

Object of class SimulationObserver

Full path of the block to be added to the list of blocks to be notified.

Examples

expand all

Add block to list of blocks for notification.

functionpostEntry(obj,eventSource,eventData)ifsomeCondtionIsTrue addBlockNotification(obj,[this.mModel'/Patron Enter']);endend

Version History

Introduced in R2016a