Hi, My signal with the integrator

36 Ansichten (letzte 30 Tage)
Thi
Thi am 29 Sep. 2025 um 18:20
Kommentiert: Thi vor etwa 5 Stunden
I have attached the picture which shows the problem I have now. I have set the intial condition for the new integrator block is 60. Pls help me to fix the problem.

Antworten (1)

Umar
Umar am 30 Sep. 2025 um 4:50
Bearbeitet: Umar am 30 Sep. 2025 um 4:50

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 Kommentare
Umar
Umar am 1 Okt. 2025 um 22:50

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!

Thi
Thi vor etwa 3 Stunden
one connection between h and the center of the Switch missed, so I connect and it works

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Test Model Components finden Sie in Help Center und File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by