Main Content

slreportgen.utils.isTestSequence

Check if Test Sequence block or object

Description

example

tf = slreportgen.utils.isTestSequence(obj) tests if the input obj is a Simulink® Test Sequence block or a Stateflow® Test Sequence object.

Examples

collapse all

load_system("slrgex_sltestTestSequenceDebouncerExample")
tf = slreportgen.utils.isTestSequence...
   ("slrgex_sltestTestSequenceDebouncerExample/Debouncer_Test")
tf = logical
   1

In this case, the Debouncer_Test block in the slrgex_sltestTestSequenceDebouncerExample model is a Test Sequence block.

Input Arguments

collapse all

Object to check for being a Test Sequence block or object, specified as a string or character array of the object path or handle.

Output Arguments

collapse all

Whether input is a Test Sequence block or object, returned as 1 (true) if the input is a Test Sequence. Otherwise, it returns 0 (false).

Version History

Introduced in R2019a

See Also

(Simulink Test)