Wait for the simulation to end
cm_wait_endWait for a CarMaker simulation to finish and return end status, simulation time, distance, results, and errors. If not finished, get live values and call again to continue waiting.
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 |