sltest.testsequence.addTransition(blockPath,fromStep,condition,toStep)
creates a test step transition in the Test Sequence block
blockPath. The transition executes on
condition, from the origin fromStep,
to the destination toStep. fromStep and
toStep must be at the same hierarchy level.
blockPath — Test Sequence block path or handle string | character vector
Path to a Test Sequence block, including the block name, specified as a
string or character vector. Instead of the block path, you can use a block
handle.
Example: 'FanSpeedTestHarness/Test Sequence'
fromStep — Origination step path character vector
Path of an existing step in the Test Sequence block,
specified as a character vector, at which the transition originates.
The path must include the step name and step hierarchy, using . to
separate hierarchy levels. This step must be at same level as toStep.
Example: 'topStep.midStep.step1'
condition — Condition on which the transition executes character vector
The condition on which the transition executes, specified as
a character vector. Though specified as a character vector, it must
be a valid logical expression for the transition to execute.
Example: 'theta == 0 && a == 1'
toStep — Destination step path character vector
Path of an existing step in the Test Sequence block,
specified as a character vector, which becomes active step after the
transition executes. The path must include the step name and step
hierarchy, using . to separate hierarchy levels.
This step must be at same level as fromStep.
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.