(2.) scdtmpSetpoints/Setpoints
initial guess: 0
initial guess: 0
initial guess: 0
initial guess: 0
Obtain the index of the specification in opspec.Inputs that corresponds to the Feed
rpm input block.
index1 = getInputIndex(opspec,'scdtmpSetpoints/Feed rpm')
index1 =
1 1
index1(1) is the index of the input specification object for the Feed rpm block in the
opspec.Inputs. Since this input port is a scalar signal, index1 has one row and
index1(2) is 1.
If an input port is a vector signal, you can obtain the indices for all of the elements in the
corresponding input specification.
index2 = getInputIndex(opspec,'scdtmpSetpoints/Setpoints')
index2 =
2 1
2 2
2 3
2 4
Each row of index2 is the index for one element of the Setpoints input vector.
Get Index of Specified Input Element of Operating Point Specification
Open Simulink model.
getInputIndex