decreaseOrder - Decrease component initialization order by 1 - MATLAB (original) (raw)

Main Content

Decrease component initialization order by 1

Since R2024b

Syntax

Description

decreaseOrder([initializeFunctionObj](#mw%5F335177e9-04a1-41ff-9ffb-afc12f5032a3)) decreases order of the specified initialize function initializeFunctionObj by 1.

Examples

collapse all

  1. Open and simulate the model to populate it with functions.
    model = systemcomposer.openModel("scServiceInterfaceExample");
    sim("scServiceInterfaceExample");
  2. View the initialize functions sorted by order of component initialization.
    initializeFunctions = {model.Architecture.Initialization.Name}'
  3. Decrease the order of the first function.
    decreaseOrder(model.Architecture.Initialization(1))
    initializeFunctions = {model.Architecture.Initialization.Name}'
  4. Increase the order of the third function.
    increaseOrder(model.Architecture.Initialization(3))
    initializeFunctions = {model.Architecture.Initialization.Name}'

Input Arguments

Version History

Introduced in R2024b