Wait for the simulation to end
cm_wait_endWait for an IPG CarMaker simulation to finish or report live status, returning end results, log warnings/errors, or a prompt to call again until idle.
Instructions
Wait until the simulation is idle again. finished=true: end status, simulation time and distance, result_file, new log errors and warnings (settings CarMaker ignored show up there) and pop-ups. finished=false: current state and live values; call again to keep waiting.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "cm_wait_end"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| poll_s | No | Seconds between status polls | |
| timeout_s | No | Longest time to wait in s, at most 50 (larger values are cut to 50); call again if not finished |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| live | No | ||
| note | No | ||
| state | No | ||
| popups | No | ||
| testrun | No | ||
| finished | No | ||
| waited_s | No | ||
| elapsed_s | No | ||
| logs_file | No | ||
| distance_m | No | ||
| end_status | No | ||
| log_errors | No | ||
| logs_error | No | ||
| sim_time_s | No | ||
| poll_errors | No | ||
| result_file | No | ||
| log_warnings | No | ||
| simulink_error | No | ||
| stop_requested | No |