Challenge - 5 Problems
Error Signal Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
❓ Predict Output
intermediateOutput of error signal calculation block
Given a Simulink model where the error signal is computed as the difference between a reference input and a feedback signal, what is the output of the error signal block if the reference input is a constant 5 and the feedback signal is a sine wave with amplitude 3 at time t=0?
Simulink
Reference input: 5 Feedback signal at t=0: 3 * sin(0) = 0 Error signal = Reference input - Feedback signal
Attempts:
2 left
💡 Hint
Remember error signal = reference input minus feedback signal.
✗ Incorrect
At time t=0, sine wave value is 0, so error = 5 - 0 = 5.
❓ data_output
intermediateError signal array from sampled signals
If the reference signal is [2, 4, 6, 8] and the feedback signal is [1, 3, 5, 7], what is the error signal array computed as reference minus feedback?
Simulink
reference = [2, 4, 6, 8] feedback = [1, 3, 5, 7] error = reference - feedback
Attempts:
2 left
💡 Hint
Subtract each feedback element from the corresponding reference element.
✗ Incorrect
Element-wise subtraction: 2-1=1, 4-3=1, 6-5=1, 8-7=1.
❓ visualization
advancedPlot of error signal over time
You have a reference signal as a constant 10 and a feedback signal as a decaying exponential 10 * exp(-t) for t from 0 to 5 seconds sampled every 1 second. Which plot correctly shows the error signal computed as reference minus feedback?
Simulink
import numpy as np import matplotlib.pyplot as plt t = np.arange(0, 6, 1) reference = 10 feedback = 10 * np.exp(-t) error = reference - feedback plt.plot(t, error, marker='o') plt.xlabel('Time (s)') plt.ylabel('Error Signal') plt.title('Error Signal over Time') plt.grid(True) plt.show()
Attempts:
2 left
💡 Hint
Error = 10 - 10*exp(-t), which starts at 0 and grows as exp(-t) decays.
✗ Incorrect
At t=0, error=10-10=0; at t=5, error approaches 10-10*exp(-5) ≈ 9.93.
🧠 Conceptual
advancedEffect of delay in feedback on error signal
In a control system, if the feedback signal is delayed by 2 seconds compared to the reference signal, how does this delay affect the error signal computation?
Attempts:
2 left
💡 Hint
Think about how delay shifts the feedback signal in time.
✗ Incorrect
Delay causes feedback to be out of sync, so error reflects difference with older feedback, causing lag.
🔧 Debug
expertIdentify error in error signal computation block
A Simulink model computes error signal as 'feedback - reference' instead of 'reference - feedback'. What is the impact on the error signal and system behavior?
Attempts:
2 left
💡 Hint
Consider what happens if you swap the order of subtraction in error calculation.
✗ Incorrect
Swapping reference and feedback in subtraction inverts error sign, which can cause wrong control actions.
