Export Parameterized Model Code
Changed onExport a parameterized model as code, as a zip.
One route for every export format, so later ones (e.g. Simscape) add a format value rather than a path.
Current and ambient temperature are inputs to the generated code, and so is initial SOC when the model can take one.
Parameters
parameterized_model_id : str ID of the parameterized model to export. parameterized_models_repository : ParameterizedModelsRepository Repository scoped to the caller's Supabase client. model_repository : ModelRepository Repository scoped to the caller's Supabase client. export_format : {"matlab", "simulink"} Which code to generate, from the format query parameter.
Returns
Response The zip archive as application/zip, sent as an attachment.
Request
- Base URLhttps://api.ionworks.com
- URLhttps://api.ionworks.com/parameterized_models/{parameterized_model_id}/export
- Authnone declared
Path parameters
Query parameters
'matlab' for functions to solve with ode15s; 'simulink' for a MATLAB System block (models with an initial-SOC input only).
Response
Successful Response
Changes
- info
endpoint added
- info