Main Content

getEventCalendars

Class: simevents.SimulationObserver
Namespace: simevents

Get handles to event calendars

Syntax

getEventCalendars(obj)

Description

getEventCalendars(obj) is a utility method that returns handles to all event calendars in your model.

Input Arguments

expand all

Object of class SimulationObserver

Output Arguments

expand all

Array of handles to the event calendars in your model.

Examples

expand all

Get handles to all event calendars in your model.

function postEntry(obj,evSrc,evData)
    % Print simulation time
    evcal=getEventCalendars(obj);
    tNow=evcal(1).TimeNow;
    disp(tNow);
end

Version History

Introduced in R2016a