function [subsystemOrder, blockOrder] = splitExecutionOrder(rawExecutionOrder)
% CONVERTEMPTYTONAN Convert an empty value to NaN to be inserted in table.

% Copyright 2018 The MathWorks, Inc.
    
    subsystemOrder = NaN;
    blockOrder = NaN;
    
    % The expected rawExecution order is in the form "x:y" where x and y
    % are numbers
    % Other cases that need to be handled include:
    % Function Call subsystems - 'x:y,x:y'
    % Entity Generator - 'E'
    % See the unit test for this function for an exhaustive list
    if contains(rawExecutionOrder, ':')
        splitOrder = strsplit(rawExecutionOrder,':');
        if numel(splitOrder) == 2
            subsystemOrder = str2double(splitOrder{1});
            blockOrder = str2double(splitOrder{2});
        end
    end
    
end

