MATLAB SIMULINK VERIFICATION AND VALIDATION - S Podręcznik Użytkownika Strona 235

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 674
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 234
Create a Custom Requirements Link Type
9-13
function [labels, depths, locations] = ContentsFcn(filePath)
% Read the entire file into a variable
fid = fopen(filePath,'r');
contents = char(fread(fid)');
fclose(fid);
% Find all the requirement items
fList1 = regexpi(contents,'\nRequirement:: "(.*?)"','tokens');
% Combine and sort the list
items = [fList1{:}]';
items = sort(items);
items = strcat('@',items);
if (~iscell(items) && length(items)>0)
locations = {items};
labels = {items};
else
locations = [items];
labels = [items];
end
depths = [];
3
To register the custom link type ABC, type the following MATLAB command:
rmi register rmicustabcinterface
The ABC file type appears on the “Requirements Traceability Link Editor” drop-
down list of document types.
4
Create a text file with the .abc extension containing several requirement items
marked by the Requirement:: string.
For your convenience, an example file ships with your installation. The example file
is matlabroot\toolbox\slvnv\rmidemos\demo_req_1.abc. demo_req_1.abc
contains the following content:
Requirement:: "Altitude Climb Control"
Altitude climb control is entered whenever:
|Actual Altitude- Desired Altitude | > 1500
Units:
Actual Altitude - feet
Desired Altitude - feet
Description:
When the autopilot is in altitude climb
control mode, the controller maintains a
constant user-selectable target climb rate.
Przeglądanie stron 234
1 2 ... 230 231 232 233 234 235 236 237 238 239 240 ... 673 674

Komentarze do niniejszej Instrukcji

Brak uwag