Test inputs: step, ramp and impulse
لم يُترجم بعد؛ يُعرض باللغة الإنجليزية
عن هذا الدرس
Engineers judge a system by poking it with a few standard signals and watching what it does. Put one thermometer, a first-order system with a 15-second time constant, through the three classic tests: plunge it into hot water (a step), heat its water steadily (a ramp) and dip it in boiling water for one second (close to an impulse). Every curve is the exact solution, computed as the figure plays. It uses the Laplace transform and transfer functions without re-teaching them: see the Circuits lessons Circuit analysis with the Laplace transform, Step response of RLC circuits and Characteristic roots and damping, and The transfer function of a system.
Why test inputs?
Real inputs are messy, so engineers poke a system with a few simple, agreed signals and compare the answers. The three most used are the step, the ramp and the impulse. Our test subject is a thermometer.
test input a simple, standard signal u(t) response what the system does, y(t) step a sudden jump that stays ramp a steady climb impulse a very short, strong kick Same tests for every system, so the answers can be compared. Builds on: Circuit analysis with the Laplace transform; Step response of RLC circuits; Characteristic roots and damping; The transfer function of a system.
اقرأ الدرس خطوة بخطوة
Why test inputs?
Real inputs are messy, so engineers poke a system with a few simple, agreed signals and compare the answers. The three most used are the step, the ramp and the impulse. Our test subject is a thermometer.
test input a simple, standard signal u(t) response what the system does, y(t) step a sudden jump that stays ramp a steady climb impulse a very short, strong kick Same tests for every system, so the answers can be compared. Builds on: Circuit analysis with the Laplace transform; Step response of RLC circuits; Characteristic roots and damping; The transfer function of a system.The thermometer is first order
Input u: the water temperature. Output y: the reading. The gap drives it, 15·dy/dt = u − y, with time constant T = 15 s. In Laplace form (signals as functions of s), output over input is the transfer function G(s) = 1/(15s + 1).
# T·dy/dt = u − y, stepped forward 1 ms at a time T, dt = 15, 0.001 u, y = 60.0, 20.0 for n in range(15000): # 15 s y = y + dt * (u - y) / T print(round(y, 1)) # 45.3 # Laplace transform: rewrites a signal of time t # as a function of s. Taught in the Circuits # lesson 'Circuit analysis with the Laplace # transform'. Transfer function G(s) = Y(s)/U(s): # see 'The transfer function of a system'.The step: a sudden jump
At t = 0 we plunge the thermometer from 20 °C water into 60 °C water and leave it there. The input jumps by 40 °C and stays: a step. Measured from 20 °C, its Laplace transform is 40/s.
u(t) = 20 °C for t < 0 u(t) = 60 °C for t ≥ 0 measured from 20 °C: 40 · 1(t) Laplace: U(s) = 40/s A step is the test for a sudden change: a new setpoint, a switch thrown.The step response
The reading rises fast, then slows as the gap closes, and never overshoots. After one time constant, 15 s, it shows 45.3 °C: 63.2% of the way. After one minute, four time constants, 59.3 °C: 98.2%.
# exact step response of 1/(15s + 1) import math T = 15 for t in (15, 60): y = 20 + 40 * (1 - math.exp(-t / T)) print(round(y, 1)) # 45.3 # 59.3The ramp: a steady climb
Now the water is heated steadily, 0.5 °C every second: u = 20 + 0.5t. The input keeps changing at a constant rate: a ramp. Measured from 20 °C, its Laplace transform is 0.5/s².
u(t) = 20 + 0.5·t °C for t ≥ 0 measured from 20 °C: 0.5 · t Laplace: U(s) = 0.5/s² A ramp is the test for tracking: a target that keeps moving, like an antenna following a satellite.Chasing a ramp
Once settled, the reading climbs at the same speed but lags behind, showing what the water was 15 s earlier: 0.5 × 15 = 7.5 °C less. At 90 s the water is 65.0 °C and the reading 57.5 °C.
# exact ramp response of 1/(15s + 1) import math T, rate, t = 15, 0.5, 90 y = 20 + rate * (t - T + T * math.exp(-t / T)) print(round(y, 1)) # 57.5 # lag once settled: rate * T = 7.5 °CThe impulse: a short kick
An impulse is a kick so short that only its area counts. We dip the thermometer in 100 °C water for 1 s: 80 °C above, times 1 s, is an area of 80 °C·s. Its Laplace transform is just 80.
u(t) = 100 °C for 0 ≤ t < 1 s u(t) = 20 °C after area = (100 − 20) °C × 1 s = 80 °C·s ideal impulse: 80 · δ(t) Laplace: U(s) = 80 1 s is much shorter than T = 15 s, so the dip acts almost like an impulse.The impulse response
The reading jumps up, then drifts back to 20 °C along e^(−t/15). An ideal impulse of area 80 lifts it by 80/15 = 5.3 °C at once; our real one-second dip peaks at 25.2 °C, almost the same.
# real 1 s dip versus the ideal impulse import math T = 15 peak = 20 + 80 * (1 - math.exp(-1 / T)) print(round(peak, 1)) # 25.2 print(round(20 + 80 / T, 1)) # 25.3Three answers, one system
The answers are linked. The impulse response is the slope of the step response, and the ramp response is the step response added up over time. That is why the next lessons study the step response closely.
for 1/(Ts + 1), per unit of input: impulse (1/T)·e^(−t/T) step 1 − e^(−t/T) ramp t − T + T·e^(−t/T) Each is the slope (derivative) of the one below it. True for any linear, time-invariant (LTI) system: double the input, double the output; add inputs, add outputs; and the same test gives the same answer whenever you run it.
أسئلة سريعة: 5
اختر إجابة واحدة لكل سؤال. يمكنك تغيير اختياراتك قبل التحقق منها.
01Measured from 20 °C, the water jumps by 40 °C and stays there. What is this step's Laplace transform?
A step of size A has Laplace transform A/s, so 40/s. A ramp of rate R gives R/s² (0.5/s² here), and an impulse of area A gives just A (80 here).
02A first-order system with time constant 15 s gets a step from 20 °C to 60 °C. About what does it read after 15 s?
After one time constant a first-order system has covered 63.2% of the change: 20 + 0.632 × 40 = 45.3 °C. Halfway (40 °C) comes earlier, at about 0.69 time constants.
03The bath warms at 0.5 °C per second and the thermometer's time constant is 15 s. Once the start-up has died away, how far behind is the reading?
It climbs at the same 0.5 °C/s but shows what the water was 15 s earlier, so it trails by rate × time constant = 0.5 × 15 = 7.5 °C, for as long as the ramp goes on.
04Why does a one-second dip in 100 °C water act almost like an ideal impulse for this thermometer?
The system is too slow to notice the shape of a kick much shorter than its time constant; it only feels the area, 80 °C·s. The real dip peaks at 25.2 °C, the ideal impulse at 25.3 °C.
05For a linear, time-invariant (LTI) system (one where doubling or adding inputs doubles or adds the outputs, and which behaves the same whenever you test it), how is the impulse response related to the step response?
An impulse is the derivative of a step, so for a linear, time-invariant system the impulse response is the derivative of the step response. For 1/(Ts + 1): the slope of 1 − e^(−t/T) is (1/T)e^(−t/T).
المسرد
- Laplace transform
- A way to rewrite a signal of time t as a function of a new variable s, which turns differential equations into algebra. A step of size A becomes A/s. Taught in the Circuits lesson Circuit analysis with the Laplace transform.
- Transfer function
- G(s) = Y(s)/U(s): a system's output over its input, both in Laplace form, starting from rest. Here G(s) = 1/(15s + 1). See The transfer function of a system.
- Linear time-invariant (LTI)
- A system where doubling an input doubles the output, adding inputs adds the outputs, and the same test gives the same answer at any time. Transfer functions only describe LTI systems. See The transfer function of a system.
- Step
- An input that jumps at t = 0 and stays at the new value. Laplace transform A/s for a step of size A.
- Ramp
- An input that rises at a constant rate R from t = 0. Laplace transform R/s².
- Impulse
- An idealised kick of zero width and finite area A, written A·δ(t). Laplace transform A. Any kick much shorter than the system's time constant behaves like one.
- First-order system
- A system described by T·dy/dt = u − y (transfer function 1/(Ts + 1) for unit gain): it moves towards the input at a rate proportional to the gap.
- Time constant (T)
- For a first-order system, the time to cover 63.2% of a step change. After 4T it has covered 98.2%.
الملاحظات والمصادر
- The thermometer is a first-order model with an illustrative time constant of 15 s. Every curve and number in the figure is computed from its exact solution.
- A true impulse is infinitely tall and lasts no time at all, so it cannot be built. Any kick much shorter than the time constant behaves like one of the same area: our 1 s dip peaks at 25.2 °C against the ideal 25.3 °C.
- Textbooks also use a parabola (constant acceleration) and a sine wave as test inputs. The sine wave gets its own module, on frequency response.
- The Python on each step is plain Python 3 with the math module. The python-control library has step_response and impulse_response functions that compute the same curves numerically.
- K. Ogata, Modern Control Engineering, 5th ed., Pearson (ch. 5: transient and steady-state response analyses; §5-1 test signals, §5-3 first-order systems)
- N. S. Nise, Control Systems Engineering, 8th ed., Wiley (ch. 1 test input signals, ch. 4 time response)
- G. F. Franklin, J. D. Powell, A. Emami-Naeini, Feedback Control of Dynamic Systems, 8th ed., Pearson (ch. 3)
- MIT OpenCourseWare 16.06 Principles of Automatic Control (S. Hall)
- MIT OpenCourseWare 6.302 Feedback Systems (Roberge, Dawson, Lundberg)
- python-control documentation: control.step_response
اختبار يتاح بعد الخطوة الأخيرة.