How can I find status of my model execution?

1 次查看(过去 30 天)
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