Main Content

Simulink.SubsystemReference.showSignatureDiffDialogForSS

Display differences in signatures of two Subsystem blocks

Since R2023a

Description

Simulink.SubsystemReference.showSignatureDiffDialogForSS(ssBlock1,ssBlock2) compares the simulation signatures of the Subsystem blocks ssBlock1 and ssBlock2 in a model and displays the signature differences in the Signature Difference Viewer.

example

Simulink.SubsystemReference.showSignatureDiffDialogForSS(___,Name=Value) displays the differences between the signatures using one or more name-value arguments in addition to the input argument in the previous syntax. For example, to compare the code generation signatures of the Subsystem blocks, set forCodeGen to true.

Examples

collapse all

The model slexModelUsingReusableSS has three Subsystem Reference blocks Double Input, Int32 Input, and Int8 Input. Convert all the Subsystem Reference blocks in the model to Subsystem blocks.

open_system("slexModelUsingReusableSS");
Simulink.SubsystemReference.convertAllSubsystemReferenceBlocksToSubsystem...
    ("slexModelUsingReusableSS");

Compare the simulation signatures of Subsystem blocks Double Input and Int32 Input.

ssBlock1 = "slexModelUsingReusableSS/Double Input";
ssBlock2 = "slexModelUsingReusableSS/Int32 Input";
Simulink.SubsystemReference.showSignatureDiffDialogForSS...
    (ssBlock1,ssBlock2,forCodeGen=false)

Input Arguments

collapse all

Path or handle of a Subsystem block in a model, specified as a string or character vector.

Example: "slexModelUsingReusableSS/Double Input"

Data Types: string | char

Path or handle of a Subsystem block in a model, specified as a string or character vector.

Example: "slexModelUsingReusableSS/Int32 Input"

Data Types: string | char

Name-Value Arguments

collapse all

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.

Example: Simulink.SubsystemReference.showSignatureDiffDialogForSS("slexModelUsingReusableSS/Double Input","slexModelUsingReusableSS/Int32 Input",forCodeGen=true) displays the differences in the code generation signatures of the Subsystem blocks Double Input and Int32 Input.

Option to compare signatures generated either for simulation or code generation of the Subsystem blocks in the model, specified as one of these values:

  • false — Display differences in simulation signatures

  • true — Display differences in code generation signatures

Example: forCodeGen=true

Option to compile the model as a model reference for generating signatures for comparison, specified as one of these values:

  • false — Compile model as a standalone model

  • true — Compile model as a model reference

Example: forModelRef=true

Version History

Introduced in R2023a