function notifySimulationStart(this, modelObject)
    %% NOTIFYSIMULATIONSTART function handles notifying simulation start event to a dataset object
    % model is a Simulink Block Diagram object
    
    %   Copyright 2016-2018 The MathWorks, Inc.
    
    % get full name from the model object
    model = modelObject.getFullName;
    
    % Query for the dataset that matches the model name
    fptrepo = fxptds.FPTRepository.getInstance();
    datasetObject = fptrepo.getDatasetForSource(model);
    
    % if dataset object exists, notify Sim Start event
    if ~isempty(datasetObject)
        this.SimInitSettings.writeMode = get_param(model, 'MinMaxOverflowArchiveMode');        
       
        loggingMMOMode = get_param(model, 'MinMaxOverflowLogging');
        this.SimInitSettings.isMMOActive = strcmp(loggingMMOMode, 'MinMaxAndOverflow');     
        
        datasetObject.initializeOnSimulationStart(this.SimInitSettings);
        this.LastDatasetAccessed = datasetObject;
    end
end