Borrar filtros
Borrar filtros

Create stand alone app without GUI?

5 visualizaciones (últimos 30 días)
DC
DC el 10 de Abr. de 2021
Comentada: DC el 11 de Abr. de 2021
I have a simple Matlab script that selects a few Excel files from a given folder, reads-in the data and does some simple data processing saving the results in another Excel file. I select the folder with the needed files using uigetdir.
I've created a stand alone app for it, but when I run it nothing happens, I don't get the pop-up to select the folder with the files, I only get the splash screen. The app name appears in the Task Manager and stays there... What am I doing wrong?
  2 comentarios
dpb
dpb el 10 de Abr. de 2021
Editada: dpb el 10 de Abr. de 2021
Dunno...haven't tried but where is the code that calls uigetdir located in the app?
I've been building an app that does similar thing -- before I put any GUI stuff into it, it ran as you describe but did execute the code to read the input Excel files and wrote the output one with only the splash screen visible. So, the code ran as intended to do the work; just no user interaction at all.
In my case, wanting it basically to be "no hands needed!" for the most common usage, I added a menu to let the user change the default input/output files instead of trying to call uigetdir from the inline code, but all worked that way. The call to uigetdir is in the menu callback function.
If you don't want the menu at all, I don't see why a uigetdir call wouldn't be executed if in the startup section, though, but I've not tried just that by its lonesome.
DC
DC el 11 de Abr. de 2021
I had my startup file configured to ask for a user input to load the corresponding Matlab path, apparently that's why the app was waiting and not opening the window to select the folder. After I commented out those lines in my startup it works fine.

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Develop Apps Using App Designer en Help Center y File Exchange.

Productos


Versión

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by