%% Example of Event Broadcasting
% This example uses local events as part of the design of a home security
% system.

% Copyright 2019-2020 The MathWorks, Inc.

%%

% Set up charts with white background
set_param(0,'ExportBackgroundColorMode','white');

model = 'sf_security';
load_system(model)
open_system([model '/Security System'])

%% 
% The security system consists of an alarm and three anti-intrusion sensors
% (a window sensor, a door sensor, and a motion detector). After the system
% detects an intrusion, you have a small amount of time to disable the
% alarm. Otherwise, the system calls the police.
