function errMsg = forceModelWritable(model)
%Sldv.forceModelWritable - Makes the models file writable or returns error string

%   Copyright 2006-2010 The MathWorks, Inc.

    errMsg = [];
    mdlfile = get_param(model,'filename');
    status = fileattrib(mdlfile,'+w');
    if ~status
        errMsg = message('Sldv:SldvMergeHarness:UnableWrite',mdlfile);
    end
end
