Export a result file
cm_results_exportExports selected quantities from a CarMaker .erg result file at full resolution to MAT or CSV, with optional time-window filtering and safe non-overwriting output.
Instructions
Write quantities of a result file at full resolution (no thinning) to a MAT file (one double variable per quantity, dots as underscores, plus quantity_names and units) or a CSV file (header 'Time [s],Car.v [m/s],...': name and unit), in any folder of this computer. Never overwrites.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"erg": "<erg>"
},
"name": "cm_results_export"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| erg | Yes | Result file (.erg): absolute path, or relative to the project | |
| file | No | Target .mat or .csv (absolute, or relative to the result file's folder); default next to it | |
| t_max | No | End of the time window in s | |
| t_min | No | Start of the time window in s | |
| format | No | When file is not given | mat |
| quantities | No | Default: all |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||