Main Content

addBlockNotification

Class: simevents.SimulationObserver
Namespace: 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 in blkPath.

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.

function postEntry(obj,eventSource,eventData)
   if someCondtionIsTrue
      addBlockNotification(obj,[this.mModel '/Patron Enter']);
   end
end

Version History

Introduced in R2016a