Clear Filters
Clear Filters

How can I find status of my model execution?

1 view (last 30 days)
Guru Moorthy
Guru Moorthy on 25 Feb 2021
Answered: Hari on 2 Sep 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?

Answers (1)

Hari
Hari on 2 Sep 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!

Categories

Find more on MATLAB Web App Server in Help Center and File Exchange

Products


Release

R2016a

Community Treasure Hunt

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

Start Hunting!