parameterized_models

Export Parameterized Model Code

Changed on

Export 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.

get/parameterized_models/{parameterized_model_id}/export

Request

  • Base URL
    https://api.ionworks.com
  • URL
    https://api.ionworks.com/parameterized_models/{parameterized_model_id}/export
  • Auth
    none declared

Path parameters

parameterized_model_idstring uuid required

Query parameters

format'matlab' | 'simulink'

'matlab' for functions to solve with ode15s; 'simulink' for a MATLAB System block (models with an initial-SOC input only).

Response

Successful Response

Changes