Main Content

sdo.SystemLoggingInfo Class

Namespace: sdo
Superclasses:

Specify linear system logging information

Syntax

sys = sdo.SystemLoggingInfo
sys = sdo.SystemLoggingInfo(Name,Value)

Description

Specify linear system logging information. Use sdo.SystemLoggingInfo object to set the SystemLoggingInfo property of sdo.SimulationTest, to specify linear systems to log when simulating the model. You can configure sdo.SystemLoggingInfo to compute the linear system with or without using any frequency-domain check blocks defined in the model.

Construction

sys = sdo.SystemLoggingInfo constructs an sdo.SystemLoggingInfo object, sys, with default linear system logging settings. To modify settings for your specific application, use dot notation.

sys = sdo.SystemLoggingInfo(Name,Value) specifies additional linear system logging settings, using one or more Name,Value pair arguments. Name is a property name and Value is the corresponding value. Name must appear inside single quotes (''). You can specify several name-value pair arguments in any order as Name1,Value1,...,NameN,ValueN.

Input Arguments

Name-Value Arguments

Specify optional pairs of arguments as Name1=Value1,...,NameN=ValueN, where Name is the argument name and Value is the corresponding value. Name-value arguments must appear after other arguments, but the order of the pairs does not matter.

Before R2021a, use commas to separate each name and value, and enclose Name in quotes.

Use Name,Value arguments to specify properties of sdo.SystemLoggingInfo object during object creation. For example, sys = sdo.SystemLoggingInfo('LoggingName','linear_system1') creates a sdo.SystemLoggingInfo object specifying the LoggingName property as linear_system1.

Properties

expand all

Specify how to compute the linear system, with or without using frequency-domain check blocks in the model, specified as a character vector. To use a frequency-domain check block in the model, specify Source as the full path of the check block. For example, 'sdorectifier/Filter Design Requirements'. To not use a model check block, set Source to a name or use the default value ''.

Name used for the computed linear system, specified as a character vector. LoggingName appears in the sdo.SimulationTest.LoggedData when the simulation is run.

Linearization input/output (IO) points, specified as a vector of linearization IOs. Create LinearizationIOs using the linio (Simulink Control Design) command from Simulink® Control Design™.

If Source is specified as path to a model frequency-domain check block, and LinearizationIOs is non-empty, the linearization IO points of the check block are overwritten when the model is simulated.

Linearization snapshot times, specified as a scalar or vector of scalars.

If Source is specified as path to a model frequency-domain check block, and SnapshotTimes is non-empty, the linearization snapshot times of the check block are overwritten when the model is simulated.

Linearization options to use when computing the linear system, specified as a linearization option set. To set these options, use the linearizeOptions (Simulink Control Design) command from Simulink Control Design.

If Source is specified as path to a model frequency-domain check block, and LinearizationOptions is non-empty, the linearization options of the check block are overwritten when the model is simulated.

Copy Semantics

Value. To learn how value classes affect copy operations, see Copying Objects.

Examples

collapse all

Open the model.

open_system('sldo_model1')

Specify the input and output points that define the linear system to be computed.

IOs(1) = linio('sldo_model1/Sum',1,'input');
IOs(2) = linio('sldo_model1/Plant',1,'output');

Create an sdo.SystemLoggingInfo object to specify the linear system logging settings.

sys1 = sdo.SystemLoggingInfo;
sys1.Source = 'Specified IOs';
sys1.LoggingName = 'Linear_System';
sys1.LinearizationIOs = IOs;
sys1.SnapshotTimes = 0;

Version History

Introduced in R2015b