Wait for the simulation to end
cm_wait_endWait for an IPG CarMaker simulation to become idle, then get end status, results, and errors; poll again if not finished.
Instructions
Wait until the simulation is idle again. finished=true: end status, simulation time and distance, result_file, new log errors and pop-ups. finished=false: current state and live values; call again to keep waiting.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| poll_s | No | Seconds between status polls | |
| timeout_s | No | Longest time to wait in seconds; keep it below your client's tool time-out and 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 | ||
| simulink_error | No | ||
| stop_requested | No |