Main Content

Simulink.SubsystemReference.generateSignatures

Generate unit test signatures of subsystem file

Since R2023a

Description

Simulink.SubsystemReference.generateSignatures(name) generates signatures of the unit tests of the subsystem file name.

example

Simulink.SubsystemReference.generateSignatures(name,testHarness) generates the signature of the unit test testHarness of the subsystem file name.

example

Simulink.SubsystemReference.generateSignatures(name,{testHarness1,...,testHarnessN}) generates the signatures of the unit tests testHarness1,...,testHarnessN of the subsystem file name.

Examples

collapse all

Generate the signatures of all the unit tests of the subsystem file.

Simulink.SubsystemReference.generateSignatures('slexReusableSS')

Generate the signatures of specified unit tests of the subsystem file.

Simulink.SubsystemReference.generateSignatures('slexReusableSS',...
                                       {'ssref1_double','ssref1_int32'})

Input Arguments

collapse all

Name of the subsystem file, specified as a string or character vector. You can also specify the handle of the subsystem file.

Example: 'slexReusableSS'

Data Types: char | string

Name of the unit test, specified as a string or character vector.

Example: 'ssref1_double'

Data Types: char | string

Names of the unit tests, specified as a cell array.

Example: {'ssref1_double','ssref1_int32'}

Data Types: cell

Version History

Introduced in R2023a