saturationOverflows
Get results where saturation occurred
Description
returns all results in results
= saturationOverflows(converter
,RunName
)RunName
, for the model specified by the DataTypeWorkflow.Converter
object, converter
, that
saturated during simulation.
Examples
Get Saturation Results for Specified Run
This example shows how to get saturation results for the specified run of a DataTypeWorkflow.Converter
object.
Open the fxpdemo_feedback
model.
open_system('fxpdemo_feedback');
Create a DataTypeWorkflow.Converter
object for the Controller subsystem.
converter = DataTypeWorkflow.Converter('fxpdemo_feedback/Controller');
Simulate the model and store the results in a run titled InitialRun
.
converter.CurrentRunName = 'InitialRun';
simulateSystem(converter);
Determine if there were any overflows in the run.
saturations = saturationOverflows(converter,'InitialRun')
saturations = Result with properties: ResultName: 'fxpdemo_feedback/Controller/Up Cast' SpecifiedDataType: 'fixdt(1,16,14)' CompiledDataType: 'fixdt(1,16,14)' ProposedDataType: '' Wraps: [] Saturations: 23 WholeNumber: 0 SimMin: -2 SimMax: 1.9999 DerivedMin: [] DerivedMax: [] RunName: 'InitialRun' Comments: {'An output data type cannot be specified on this result. The output type is the same as the input type.'} DesignMin: [] DesignMax: []
A saturation occurs in the Up Cast block of the Controller subsystem during the simulation. There are no wrapping overflows.
Input Arguments
converter
— Converter object
DataTypeWorkflow.Converter
object
Converter object for the system under design, specified as a
DataTypeWorkflow.Converter
object.
RunName
— Name of run
character vector
Name of run to look for saturations in, specified as a character vector.
Example:
saturations = saturationOverflows(converter,'Run 1')
Data Types: char
Output Arguments
results
— Results that saturated
DataTypeWorkflow.Result
object
Results that saturated, returned as a DataTypeWorkflow.Result
object.
Version History
Introduced in R2014b
Ouvrir l'exemple
Vous possédez une version modifiée de cet exemple. Souhaitez-vous ouvrir cet exemple avec vos modifications ?
Commande MATLAB
Vous avez cliqué sur un lien qui correspond à cette commande MATLAB :
Pour exécuter la commande, saisissez-la dans la fenêtre de commande de MATLAB. Les navigateurs web ne supportent pas les commandes MATLAB.
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)