Start the simulation
cm_start_simStart a loaded CarMaker test run and return once it is running; if the Simulink model fails to compile, it stops immediately with the error.
Instructions
Start the loaded test run. Returns once it is running; fails at once, with Simulink's error, if the model does not compile. Then call cm_wait_end until it reports finished.
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_start_sim"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| save | No | save: write a result file (GUI storage mode becomes 'Save all', cm_revert_all puts it back). collect: buffer only. keep: leave the GUI setting alone | save |
| speed | No | x real time; omit for CarMaker's maximum. Slower only if the user asks | |
| save_logs | No | Also save what Simulink logged in this run to a MAT file next to the result file (a Simulink Dataset, for MATLAB; for Python call cm_model_logs_save(format='struct', file=...)); cm_wait_end returns logs_file and logs_signal_names | |
| start_timeout_s | No | How long the start may take (a Simulink model may compile first) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | ||
| state | No | ||
| popups | No | ||
| after_s | No | ||
| started | No | ||
| save_mode | No | ||
| matlab_folder_restored | No | ||
| carmaker_project_restored | No |