This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

simulateSystem

Class: DataTypeWorkflow.Converter
Package: DataTypeWorkflow

Simulate converter’s system

Syntax

simOut = converter.simulateSystem()
simOut = converter.simulateSystem(Name,Value)
simOut = converter.simulateSystem(ParameterStruct)
simOut = converter.simulateSystem(ConfigSet)

Description

simOut = converter.simulateSystem() simulates the converter’s selected system.

simOut = converter.simulateSystem(Name,Value) uses additional options specified by one or more Name,Value pair arguments. This method accepts the same Name,Value pairs as the sim function.

simOut = converter.simulateSystem(ParameterStruct) simulates the converter’s selected system using the parameter values specified in the structure, ParameterStruct.

simOut = converter.simulateSystem(ConfigSet) simulates the converter’s selected system using the configuration settings specified in the model configuration set, ConfigSet.

Note

  • The SimulationMode property must be set to normal. The Fixed-Point Designer™ software does collect simulation ranges in Rapid accelerator or Hot restart modes.

  • The SrcWorkspace parameter must be set to either base or current.

Input Arguments

expand all

Structure with fields that are the names of the configuration parameters for the simulation. The corresponding values are the parameter values.

Data Types: struct

Configuration set, specified as a Simulink.ConfigSet, containing the values of the model parameters.

Output Arguments

expand all

Simulink.SimulationOutput object containing the simulation outputs: logged time, states, and signals.

Tips

  • To correspond your simulation to a specific run name, before simulation, change the CurrentRunName property of the DataTypeWorkflow.Converter object.

  • DataTypeWorkflow.Converter.simulateSystem provides functionality similar to the sim command, except that simulateSystem preserves the model-wide data type override and instrumentation settings of each run.