Main Content
setVariable
Class: sltest.testmanager.TestIteration
Namespace: sltest.testmanager
Set model variable override
Syntax
setVariable(obj,'Name',varName,'Source',srcName,'Value',value,'SimulationIndex',simIndex)
Description
setVariable(
sets a model variable override for the test iteration. Specify the obj
,'Name'
,varName
,'Source'
,srcName
,'Value'
,value
,'SimulationIndex'
,simIndex
)sltest.testmanager.TestIteration
object, and then specify the variable
name, source, override value, and optionally, the simulation index. The method overrides
the variable in the test iteration and does not permanently change the model
variable.
Input Arguments
Examples
Version History
Introduced in R2016a