function recordSignals(this)
    % RECORDSIGNALS Enables recording of signals from SDI.
    
    % Copyright 2015-2019 The MathWorks, Inc.
    
    % g2142943 - FPT UI does not react to canvas simulation, 
    % feature control 'waitfor' so that app in the initial state 
    % does not block model simulation
    if fixed.internal.utility.featuremanager.FeatureManager.getStatus('fxpoptInFPT') < 15
        % Disable the UI when simulation begins
        msg = 'EngineSimulationStart';
        % Before continuining, verify that that the SimStartPublishChannel
        % attribute has been defined so message.publish does not issue a
        % warning. From g1660978.
        waitfor(this, 'isReadyPostCallback', true);
        message.publish(this.SimStartPublishChannel, msg);        
    end
    
    sdiEngine = Simulink.sdi.Instance.engine();
    if ~Simulink.sdi.Instance.record
        this.InitSDIRecordState = 'off';
        sdiEngine.record;
    end
end

% LocalWords:  FPT fxpoptInFPT