Link Simulink Data Dictionary Entries to Requirements
You can create requirements traceability links for entries in Simulink® data dictionaries. The process is similar to linking for other model objects. In the Model Explorer, right-click a data dictionary entry, select Requirements, and choose one of the selection-based linking options. You can also use the Link Editor.
This example demonstrates linking to a data dictionary entry.
Open the
example_sldemo_fuelsys_dd_controller
model. At the MATLAB® command line, enter:openExample('simulink/IdentifyPerformanceSlowdownsUsingTheSimulinkProfilerExample') open_system('example_sldemo_fuelsys_dd_controller') close_system('profiling_example_fuelcontrol_model')
In the
example_sldemo_fuelsys_dd_controller
model, open the linked data dictionary. Click the model data badge in the bottom left corner of the model, then click the External Data link.In the Model Hierarchy pane of the Model Explorer, under the External Data node, expand the
sldemo_fuelsys_dd_controller
data dictionary node.Select Design Data.
Locate the
PumpCon
parameter.In the
example_sldemo_fuelsys_dd_controller
model, open theairflow_calc
subsystem and select thePumping Constant
lookup table.In the Model Explorer, right-click the
PumpCon
parameter and select Requirements > Link to Selection in Simulink to create a link between the two items.Check the link by right-clicking the
PumpCon
parameter and selecting Requirements, then select the navigation shortcut at the top of the Requirements submenu. Simulink highlights the lookup table.