Our team is working together on the same Requirement Set using version control. We are noticing some strange behaviour on the Simulink Requirements links. Sometimes we get warnings about unfound paths from our colleagues local file system.
To investigate what is happening, I ran the following script:
rs = slreq.load('MyFile.slreqx')'reqs = find(rs, 'Type', 'Requirement');for i = 1 : nume(reqs) req = reqs(i); lnks = req.inLinks; for j = 1 : numel(lnks) lnk = lnks(j); disp(lnk.source.artifact); endend
which returns a list of lines with absolute paths ('C:\ … ') including paths from my colleagues file system. At the same time, there are lines with just the model name. After checking, and all the entries corresponding to the local file system are on the MATLAB path but, again, some of them are returned as full path, and some just as the file name.
Hence, I have the following questions:
1. Which links are stored as filename and which are stored as full path?
2. How to avoid full paths in newly created links\s?
3. Is there a way to change the full path to filename in existing links?
4. Is it possible to avoid the warnings from my colleagues files?
Best Answer