Hi, My signal with the integrator
Answers (1)
Hi @Thi,
I can see from your screenshot that you've set the initial condition value to 60 in the Integrator block, but the assessment is still showing an error. Let me help you resolve this issue. Looking at your Task 5 instructions, the task states: "Set the Initial condition to 66 (representing meters)." However, your Integrator block currently shows the initial condition set to 60, not 66.
The Solution
To define the initial conditions as a block parameter, specify the Initial condition source parameter as internal and enter the value in the Initial condition field. Follow these steps:
1. Double-click on the Integrator block in your model
2. In the Block Parameters dialog that opens, locate the "Initial condition source" parameter
3. Verify it is set to internal
4. In the "Initial condition" field, change the value from 60 to 66
5. Click OK or Apply
6. Click the Submit button in the Training Tasks pane
Why This Matters
The task specifically requires an initial condition of 66 meters, not 60. The assessment block is checking for this exact value. Once you change it to 66, the assessment should pass.
Verification
After setting the initial condition to 66, run the simulation and check the Signal Assessment output. The "My signal" trace should now match the "Signal requirement" trace more closely at the beginning of the simulation. Let me know if you encounter any issues after making this change.
Reference: MathWorks Simulink Documentation - Integrator block: https://www.mathworks.com/help/simulink/slref/integrator.html
6 Comments
Hi @Thi,
Thank you for reaching out regarding your Simulink Onramp Task 5 issue. I want to ensure I provide you with accurate guidance, and to do that, I need to gather some additional information from your training environment.
Information Needed:
1. Complete Task 5 Instructions:
*Could you please copy and paste or screenshot the full text of the Task 5 instructions? This should be visible in a task panel or instruction window in your Simulink Onramp interface.
*It should contain specific details about what needs to be configured (e.g., "Set the Initial condition to [specific value]").
2. Signal Assessment Block Details:
*The error message specifically mentions reviewing the "assessment block output."
*Please double-click on the red "Signal Assessment" block in your model diagram.
*Share a screenshot or copy any messages, parameters, or diagnostic information shown in that block's dialog.
3. Signal Plot Values:
In the "Task 5 Signal" plot on the right side of your screen:
What is the exact Y-axis value where the orange "Signal requirement" line starts at Time = 0?
What is the exact Y-axis value where your blue "My signal" line starts at Time = 0?
You can hover over the plot or check the axis labels to get precise values.
4. Current Parameter Settings: You mentioned you tried Initial condition = 60, then 66. Can you confirm:
Initial condition source = internal
Initial condition = 66 (current value)
Enable zero-crossing detection = checked or unchecked?
Are any other parameters modified from their defaults?
5. Additional Context:
*Are there any warning or informational messages in the MATLAB Command Window or Diagnostic Viewer (View > Diagnostics)?
*Can you confirm the Stop Time is set to 10.0 (as shown in your interface)?
*Are there any other blocks in the model besides the Integrator and Signal Assessment block that might be relevant? If so, could you provide a full screenshot of the complete model diagram?
*What solver is being used? (You can check this in Simulation > Model Configuration Parameters > Solver)
Why This Matters:
From the MathWorks documentation, I can confirm that the Integrator block is configured correctly in terms of parameter structure. However, without seeing the exact task requirements and expected signal values, I cannot determine the correct initial condition value you need. The assessment system is comparing your output against a specific reference signal, and we need to understand what that reference expects.
Next Steps:
Once you provide this information, I'll be able to:
*Compare your settings against the exact task requirements
*Identify any discrepancies in parameter values or configurations
*Verify that all simulation parameters are correctly set
*Provide you with the precise solution to pass Task 5
Please reply with the requested information at your earliest convenience.
Hi @Thi,
Thanks for the update. I’m glad to hear you found the right answer!
Could you please share the specific solution you arrived at? Knowing the exact values or adjustments that worked will help ensure others can benefit from the same approach in the future.
Thanks for your help in clarifying!
Categories
Find more on Model Verification in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!