| Simulink® Control Design™ | ![]() |
io=linio('blockname',portnum)
io=linio('blockname',portnum,type)
io=linio('blockname',portnum,type,openloop)
As an alternative to the linio function, create linearization I/O settings by using the right-click menu on the model diagram. See Inserting Linearization Points.
io=linio('blockname',portnum) creates a linearization I/O object for the signal that originates from the outport with port number, portnum, of the block, 'blockname', in a Simulink model. The default I/O type is 'in', and the default OpenLoop property is 'off'. Use io with the function linearize to create linearized models.
io=linio('blockname',portnum,type) creates a linearization I/O object for the signal that originates from the outport with port number, portnum, of the block, 'blockname', in a Simulink model. The linearization I/O has the type given by type. A list of available types is given below. The default OpenLoop property is 'off'. Use io with the function linearize to create linearized models.
io=linio('blockname',portnum,type,openloop) creates a linearization I/O object for the signal that originates from the outport with port number, portnum, of the block, 'blockname', in a Simulink model. The linearization I/O has the type given by type and the open-loop status is given by openloop. A list of available types is given below. The openloop property is set to 'off' when the I/O is not an open-loop point and is set to 'on' when the I/O is an open-loop point. Use io with the function linearize to create linearized models.
Available linearization I/O types are:
'in', linearization input point
'out', linearization output point
'inout', linearization input then output point
'outin', linearization output then input point
'none', no linearization input/output point
To upload the settings in the I/O object to the Simulink model, use the setlinio function.
Create a linearization I/O setting for the signal line originating from the Controller block of the magball model.
io(1)=linio('magball/Controller',1)
This syntax displays:
Linearization IOs: -------------------------- Block magball/Controller, Port 1 is marked with the following properties: - No Loop Opening - An Input Perturbation
By default, this I/O is an input point. Create a second I/O setting within the object, io. This I/O originates from the Magnetic Ball Plant block, is an output point and is also an open-loop point.
io(2)=linio('magball/Magnetic Ball Plant',1,'out','on')
The new object, io, is displayed as follows:
Linearization IOs: -------------------------- Block magball/Controller, Port 1 is marked with the following properties: - No Loop Opening - An Input Perturbation Block magball/Magnetic Ball Plant, Port 1 is marked with the following properties: - An Output Measurement - A Loop Opening
![]() | linearize | linoptions | ![]() |
| © 1984-2009- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |