Interacting with docker microservice

12 visualizzazioni (ultimi 30 giorni)
Marcus
Marcus il 10 Mar 2025
Commentato: Marcus il 17 Mar 2025
Hi Support,
When running or compiling a matlab model, I can set callbacks
simulink.compiler.setExternalInputsFcn
simulink.compiler.setPostStepFcn
that are called during runtime and can be used for interacting with the model by manipulating or evaluating input and/or output data.
Is there any thing comparable when compiling and deploying to a microservice?
Aka Webhooks or Websockets or HTTP Streaming which one can bind the callbacks to? If so are there any examples?
Is there an overview of all available API of the microservice?
Thanks.

Risposte (1)

praguna manvi
praguna manvi il 14 Mar 2025
As I see you are looking to deploy a Simulink model as a microservice, refer to this useful discussion thread on deploying it as a Docker container image, wrapped inside a MATLAB function:
Refer to the following documentation for more examples of deploying MATLAB functions as a microservice that accepts RESTful requests:
  1 Commento
Marcus
Marcus il 17 Mar 2025
Hi and Thanks for your reply. Unfortunately neither of your links do give an answer to the questions.
The first one is about the plain basics but at least answers the cross-compile issue I have (which I did not ask here though) ;)
From the second link only the subpage microservice-command-arguments-listed-alphabetically does give some clue that there is an API but does not give any details on the API itself.

Accedi per commentare.

Categorie

Scopri di più su Containers in Help Center e File Exchange

Prodotti


Release

R2022b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by