Simulink Control Design™ - MathWorks
setBlockRateConversion Set rate conversion settings for tuned block in slTuner interface When you use systune with Simulink, tun ...
Set Rate Conversion Settings of Tuned PID Block Create an slTuner interface for the Simulink model scdcascade. Set the block rat ...
IF = 'BackwardEuler'; DF = 'ForwardEuler'; setBlockRateConversion(st,'C1',IF,DF); Input Arguments st — Interface for tuning cont ...
Prewarp frequency for the Tustin method, specified as a positive scalar. IF,DF — Integrator and filter methods 'ForwardEuler' | ...
You can modify the list of tuned blocks using addBlock and removeBlock. To interact with the tuned blocks use: getBlockParam, g ...
setBlockValue Set value of tuned block parameterization in slTuner interface setBlockValue lets you initialize or modify the cur ...
open_system('scdcascade'); st = slTuner('scdcascade',{'C1','C2'}); Both C1 and C2 are PI controllers. Examine the default parame ...
getBlockValue(st,'C1') ans = Kp = 4.2 Name: C1 P-only controller. Examine the parameterization of C1. getBlockParam(st,'C1') ans ...
Create a block value structure with field names that correspond to the tunable blocks in st. blockValues = getBlockValue(st); bl ...
Example: blk = 'scdcascade/C1', blk = "C1" NotesetBlockValue allows you to modify only the overall value of the parameterization ...
blockParam = getBlockParam(st,'B-1'); fieldName = blockParam.Name; blockValues = struct(fieldName,newB1); Definitions Tuned Bloc ...
directly or through a generalized parametric model. Tuned variables are the parameters manipulated by tuning commands such as sy ...
setTunedValue Set current value of tuned variable in slTuner interface setTunedValue lets you initialize or modify the current v ...
open_system('scdcascade'); st = slTuner('scdcascade',{'C1','C2'}); Set a custom parameterization for one of the tunable blocks. ...
Set a custom parameterization for one of the tunable blocks. C1CustParam = realp('Kp',1) + tf(1,[1 0]) * realp('Ki',1); setBlock ...
Create an slTuner interface for rct_diskdrive. Add C and F as tuned blocks of the interface. open_system('rct_diskdrive'); st = ...
m.Blocks.C.Kp.Value = 0.00085; m.Blocks.C.Ki.Value = 0.01; m.Blocks.a.Value = 5500; After tuning, update the block parameterizat ...
a = realp('a',1); C = tf(a,[1 a]); then set var = 'a'. value — Value of tuned variable numeric scalar | numeric array | state-sp ...
(For the complete list of blocks that support tuning, see “How Tuned Simulink Blocks Are Parameterized” on page 10-36). You can ...
setTunedValue. Similarly, you can retrieve the block value using either getBlockValue or getTunedValue. See Also getTunedValue | ...
«
117
118
119
120
121
122
123
124
125
126
»
Free download pdf