Effacer les filtres
Effacer les filtres

Create stand alone app without GUI?

5 vues (au cours des 30 derniers jours)
DC
DC le 10 Avr 2021
Commenté : DC le 11 Avr 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 commentaires
dpb
dpb le 10 Avr 2021
Modifié(e) : dpb le 10 Avr 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 le 11 Avr 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.

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur Develop Apps Using App Designer dans Help Center et File Exchange

Produits


Version

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by