Why does code generation fail with Property "pLastTimeStamp" is undefined on some execution paths when using "predictTracksToTime" in Radar Toolbox R2025b?
Show older comments
When generating code for a model that uses a "radarTracker" object in Radar Toolbox R2025b, code generation fails with the following error:
Property 'pLastTimeStamp' is undefined on some execution paths but is used inside the called function.
For code generation, all variables must be fully defined before use.
This error occurs when calling the "predictTracksToTime" function, even though the model runs correctly in normal simulation.
How can this error be resolved?
Accepted Answer
More Answers (0)
Categories
Find more on Multi-Object Tracking 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!