Simulation status
cm_statusCheck CarMaker and Simulink simulation state, active model, project directory, and GUI save status to confirm idle/running state or unsaved data before loading or starting runs.
Instructions
The MATLAB session (CarMaker for Simulink) only; standalone work needs none of it (cm_doctor). Simulation state (sim_status; sim_status_code is CarMaker's raw value, -2 idle, 0 or more running), matlab_simstate (Simulink's model state: 'terminated' is normal when idle), active model, project directory, last end status, the GUI's storage mode (save_mode) and gui_all_saved (false: the GUI holds unsaved data and will ask before a load; true is no guarantee).
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_status"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| details | No | ||
| connected | No | ||
| save_mode | No | ||
| end_status | No | ||
| session_id | No | ||
| sim_status | No | ||
| project_dir | No | ||
| active_model | No | ||
| gui_all_saved | No | ||
| matlab_simstate | No | ||
| sim_status_code | No | ||
| standalone_note | No |