Storing data and Matlab Production Server
Mostrar comentarios más antiguos
Hi there,
I'm currently looking into the possibility of running MATLAB functions from a webserver, so I looked into MATLAB Production Server. What I basically want it to do is two things.
- Periodically (every say 15 minutes), it runs a function that simulates data and does calculations to it (takes about 10 minutes in total) and produces a +- 200 MB file.
- Upon user request, MATLAB functions should be called that act on the simulated data (function takes less than a second).
.
The first function takes too long to be called on user request. Therefore, period calls to the function will make sure that data is always available to the user.
A possibility is to store the data to an SQL database, but I think the storing and retrieving of the data would take too long. I am wondering if it would be possible to either:
- Store the data in a .mat file locally on the MPS, so that upon the second function call, the data can be loaded, and it can be acted on.
- Constantly keep the data in memory (using persistent or global variables for example). Then the first function can constantly loop, and at certain time points redo the simulations, and update the data.
.
I've searched a lot on the MATLAB website, but I could not find a clear answer to this question. Any help is appreciated!
Best regards,
Robert
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Installation en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!