Interacting with docker microservice

조회 수: 10 (최근 30일)
Marcus
Marcus 2025년 3월 10일
댓글: Marcus 2025년 3월 17일
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.

답변 (1개)

praguna manvi
praguna manvi 2025년 3월 14일
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
Marcus
Marcus 2025년 3월 17일
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.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Containers에 대해 자세히 알아보기

제품


릴리스

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by