setname
Set I/O signal names in MPC plant model
Description
setname(
changes the name of theMPCobj
,'input',i
,name
)i
th input signal inMPCobj
toname
. This is equivalent toMPCobj。Model.Plant.InputName{i}=name
, and both commands and also update the read-onlyName
field of the corresponding structure inMPCobj。ManipulatedVariables
(if the input is a manipulate variable), orMPCobj。DisturbanceVariables
(if the input is a disturbance variable).
Examples
Input Arguments
Tips
Note
TheName
fields of the variable-related structures inManipulatedVariables
,OutputVariables
, andDisturbanceVariables
inMPCobj
are read-only. You must usesetname
to assign signal names, or equivalently modify theModel.Plant.InputName
andModel.Plant.OutputName
properties of the MPC object.
Note
Neither of theName
properties for the signals inMPCobj
affects whether the signal is categorized as a manipulated variable, measured or unmeasured disturbance, measured or unmeasured output. To change the signal type you need to either reassign it usingsetmpcsignal
on the plant object, and recreate the MPC object for that plant, or you need to recreate all the affected controller signal structures and useset
to assign them to the MPC object (not recommended).