- Check the data flow in your model and ensure that signals are being updated in the correct order.
- Verify that the variable Steerable_Axle_Left_Calibration_Value has been initialized before it is used. You can do this by adding an initial value to the variable or by initializing it in a block that runs before it is read.
- Ensure that the signal is not being read in a loop that runs before it is written.
- Check for any blocks in your model that may be causing the issue. Specifically, look for blocks that use the Steerable_Axle_Left_Calibration_Value signal and make sure they are not executing before it is written.
- If none of the above steps resolve the issue, try simplifying your model by removing unnecessary blocks or simplifying the data flow.
why do i see "Error while generating code for chart Test Sequence" error when running my test harness?
3 views (last 30 days)
Show older comments
Im working on Simulink Test harness an i get this error while running the simulation
0 Comments
Answers (1)
Atharva
on 26 Apr 2023
Hey Scarletth,
The error message you are seeing in Simulink suggests that the variable Steerable_Axle_Left_Calibration_Value is being read before it has been assigned a value. This can happen when there is a mismatch between the order in which signals are updated in your model and the order in which they are being used.
To resolve this error, you can try the following steps:
Once you have made the necessary changes, re-run the simulation and verify that the error no longer occurs.
0 Comments
See Also
Categories
Find more on Inputs 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!