io(1)=linio('watertank/PID Controller',1,'input');
io(2)=linio('watertank/Water-Tank System',1,'openoutput');
watertank_spec = operspec(model);
opOpts = findopOptions('DisplayReport','off');
op = findop(model,watertank_spec,opOpts);
sys = linearize(model,op,io);
Create the chirp signal.
input = frest.Chirp(sys);
frest.Chirp chooses a frequency range based on the system dynamics. It also
automatically initializes other parameters of the chirp signal.
input
The chirp input signal:
FreqRange : [0.001581138830107 0.1581138830107] (rad/s)
Amplitude : 1e-05
Ts : 7.94767061252222 (sec)
NumSamples : 1000
InitialPhase : 270 (deg)
FreqUnits (rad/s or Hz): rad/s
SweepMethod(linear/ : linear
quadratic/
logarithmic)
You can change properties of the signal using dot notation. For instance, increase the
signal amplitude.
input.Amplitude = 3e-5
The chirp input signal:
FreqRange : [0.001581138830107 0.1581138830107] (rad/s)
Amplitude : 3e-05
Ts : 7.94767061252222 (sec)
NumSamples : 1000
InitialPhase : 270 (deg)
15 Alphabetical List