How can I find status of my model execution?

조회 수: 1 (최근 30일)
Guru Moorthy
Guru Moorthy 2021년 2월 25일
답변: Hari 2024년 9월 2일
Interested in showing progress of the model run to user who kicks-off model using MathWorks Http client. is there any out of the box solution available to achieve this?

답변 (1개)

Hari
Hari 2024년 9월 2일
Hi Guru Moorthy,
I understand that you are looking for a way to display the progress of a model execution to users who initiate the model run using the MathWorks HTTP client.
I assume that you are referring to a scenario where a MATLAB model or script is executed, and its progress needs to be communicated back to a user through a web interface or a client application using HTTP requests.
You can achieve this functionality by combining MATLAB's computational, web service, and application deployment capabilities. Here's how you can approach it:
  1. Implement Progress Tracking in Your Model: Modify your model or script to include progress tracking. This could be done by updating a variable or calling a function at key points in your model's execution that reflects the current progress.
  2. Use MATLAB Web Services: Utilize MATLAB's ability to create web services. You can design a simple RESTful API using MATLAB's web server (available in MATLAB Production Server or using the "webread" and "webwrite" functions for basic implementations) that can accept HTTP requests to start the model execution and return the model's progress.
  3. Create a Progress Reporting Mechanism: Develop a mechanism within your MATLAB application to report progress. This could involve storing progress information in a location accessible via HTTP requests, such as a database, a file on a server, or in-memory storage.
  4. Access Progress via HTTP Client: Users or client applications can periodically send HTTP requests to the MATLAB web service to retrieve the latest progress updates.
References for further exploration:
Hope this helps!

카테고리

Help CenterFile Exchange에서 MATLAB Web App Server에 대해 자세히 알아보기

제품


릴리스

R2016a

Community Treasure Hunt

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

Start Hunting!

Translated by