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

Test If Object Is a Test Sequence

load_system('sltestTestSequenceDebouncerExample')
tf = slreportgen.utils.isTestSequence...
   ('sltestTestSequenceDebouncerExample/Debouncer_Test')
tf =

  logical

   1

In this case, the Debouncer_Test block in the 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).

See Also

(Simulink Test)

Introduced in R2019a