AppDesigner in headless mode (without GUI)
Afficher commentaires plus anciens
(Matlab 2022b)
How can we run Matlab in headless mode (without display and user input) when it uses AppDesigner?
-------------------------------------------------------------------------
The application is build on AppDesigner and that is interwined in an object oriented code that stores data in the app from Appdesigner.
The application is complex and contains not only the GUI but many important functions, hence, we do not want to rewrite it.
Further, we have to maintain the version with GUI for some customers but need the headless mode for internal batch processing on Linux.
My prefered option would be to run the application as usual but without output on a display (as there is no display).
That would still allow to store data in the app (in the figures) and would need minimal code change.
(Matlab2022b is fixed as the developer left and stated that it does not run on newer versions)
Any suggestion here is welcome. Thanks in advance.
Réponse acceptée
Plus de réponses (1)
Rik
le 18 Jan 2024
2 votes
I'm not aware of a way to use an AppDesigner app without the app, so I doubt you will like my suggestion:
You should extract the processing from the AppDesigner file and move it to its own file. That way you can write a class that replicates the properties stored in the graphics object. This structure will allow you to run the same processing code by either passing in the app object as an input argument, or an instance of the dummy class as an input argument. The processing code need not be aware of the difference.
This will be a lot of work, but will do exactly what you need.
Catégories
En savoir plus sur Startup and Shutdown dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!