How can I find status of my model execution?

1 visualización (últimos 30 días)
Guru Moorthy
Guru Moorthy el 25 de Feb. de 2021
Respondida: Hari el 2 de Sept. de 2024
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?

Respuestas (1)

Hari
Hari el 2 de Sept. de 2024
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!

Categorías

Más información sobre MATLAB Web App Server en Help Center y File Exchange.

Productos


Versión

R2016a

Community Treasure Hunt

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

Start Hunting!

Translated by