Existing GUIDE gui - I want to have callback that has been migrated from GUIDE to App Designer - how do I hook it up to get the new App Designer with the old GUIDE gui.

3 visualizzazioni (ultimi 30 giorni)
I have a very complicated set of GUI's developed in GUIDE. I have migrated one of the functions using App Designer and will be creating new ones. I need to know how to hook the new App Designer program into the calling code with minimum changes to the calling GUI. How Do I do this?

Risposte (1)

Karan Singh
Karan Singh il 3 Ott 2023
Modificato: Karan Singh il 3 Ott 2023
Hi Carol,
From what I understand, the goal is to integrate the App designer function into your calling code GUI without having to make many changes.
To integrate an App Designer program into your existing GUI developed using GUIDE, you can follow these steps:
1. Export the App Designer program as a standalone MATLAB function:
- Open your App Designer program in the App Designer editor.
- Go to the "Code View" tab in the App Designer editor.
- Click on the "Export" button and choose "Export to MATLAB function".
- Save the exported function in a separate file.
2. Update the calling code in your existing GUIDE GUI:
- Open the GUIDE GUI in the GUIDE editor.
- Locate the point in the code where you want to call the App Designer program.
- Replace the relevant code with a function call to the exported App Designer function.
- Pass any necessary inputs to the function and capture any outputs as needed.
3. Handle any necessary data transfer between the GUIDE GUI and the App Designer program:
- If you need to pass data between the GUIDE GUI and the App Designer program, you can use MATLAB's global variables, handles structure, or other data sharing mechanisms.
By following these steps, you can integrate an App Designer program into your existing GUIDE GUI with minimal changes to the calling code.
Attached below are some documentation links that you may find helpful:
Hope this helps!
Karan Singh Khati

Categorie

Scopri di più su Migrate GUIDE Apps in Help Center e File Exchange

Tag

Prodotti


Release

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by