Is there a Matlab command to change the custom attributes for requirements like status from the default Unset, so that I don't always have to do this manually via the editor?

조회 수: 1 (최근 30일)
I would like to automatically unlock, change and unlock the user-defined attributes such as the status of the requirement.
Is there a Matlab command for a script-controlled execution (with different commands)?
  댓글 수: 2
Jan
Jan 2022년 5월 12일
Maybe it is not immediately clear to the readers, who do not work exactly in your field: "requirements" of what? The screenshot does not reveal this detail.
Katharina Fast
Katharina Fast 2022년 5월 13일
It is generally about the tool Matlab/ Simulink Requirements and Matlab Testing.
The ReqIF data format is available for the exchange of requirements.
This can be imported into Matlab and then the requirements can be linked with Simulink blocks. Tests can also be linked to the requirements.
Importing also provides data points that Matlab does not have and thus stores them as custum attributes.
After they have been manually unlocked, they can also be provided with values or information via a script.
However, since I would like to do the unlocking manually, I am asking for a command that makes this possible.

댓글을 달려면 로그인하십시오.

답변 (1개)

Pat Canny
Pat Canny 2022년 5월 13일
Thank you for your question!
You can use the unlock method to start, along with setAttribute.
% Load a requirement set file
rs = slreq.load('C:\MATLAB\My_Requirement_Set_1.slreqx');
% Find all referenced requirements in the requirement set
allRefs = find(rs, 'Type', 'Reference')
allRefs =
1×73 Reference array with properties:
Id
CustomId
Artifact
ArtifactId
Domain
UpdatedOn
CreatedOn
CreatedBy
ModifiedBy
IsLocked
Summary
Description
Rationale
Keywords
Type
SID
FileRevision
ModifiedOn
Dirty
Comments
% Unlock a referenced requirement
unlock(allRefs(25))

카테고리

Help CenterFile Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

제품


릴리스

R2021b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by