applySettingsFromShortcut
Apply settings from shortcut to model
Description
applySettingsFromShortcut(
applies settings from the specified system shortcut, converter
,shortcutName
)shortcutName
, to a
converter
object.
Examples
Configure Model for Conversion Using a Shortcut
This example shows how to configure a model for fixed-point conversion using a shortcut.
Open the fxpdemo_feedback
model.
open_system('fxpdemo_feedback');
Create a DataTypeWorkflow.Converter
object for the Controller subsystem.
converter = DataTypeWorkflow.Converter('fxpdemo_feedback/Controller');
Configure the model for conversion by using a shortcut. Find the shortcuts that are available for the system by accessing the ShortcutsForSelectedSystem
property of the converter
object.
shortcuts = converter.ShortcutsForSelectedSystem
shortcuts = 6x1 cell array {'Range collection using double override' } {'Range collection with specified data types' } {'Range collection using single override' } {'Disable range collection' } {'Remove overrides and disable range collection'} {'Range collection using scaled double override'}
To collect idealized ranges for the system, use the 'Range collection using double override'
shortcut to override the system with double-precision data types and enable instrumentation.
applySettingsFromShortcut(converter,shortcuts{1})
This shortcut also updates the current run name property of the converter object.
converter.CurrentRunName
ans = 'Ranges(Double)'
Input Arguments
converter
— Converter object
DataTypeWorkflow.Converter
object
Converter object for the system under design, specified as a
DataTypeWorkflow.Converter
object.
shortcutName
— Name of shortcut
character vector
Name of the shortcut that specifies which settings to use, specified as a character vector.
Example: applySettingsFromShortcut(converter,'Range collection using double
override')
Data Types: char
Version History
Introduced in R2014b
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)
Asia Pacific
- Australia (English)
- India (English)
- New Zealand (English)
- 中国
- 日本Japanese (日本語)
- 한국Korean (한국어)