MATLAB designed app not working after exporting it to system

13 vues (au cours des 30 derniers jours)
NAVNEET NAYAN
NAVNEET NAYAN le 4 Août 2023
1) I had designed a MATLAB app in app designer. It is running successfully and a GUI window opens. I give inputs and correspondingly receive proper outputs.
2) Further, I exported the designed app using Package App. Using proper version of MATLAB RunTime and MyAppInstaller_mcr, my app got exported to my system and a desktop ICON is also created there.
3) When I open that app, the same GUI window opens, but problem is after giving inputs nothing is appearing on the screen.
Can anyone suggest a way out ? If you need more clarity on this issue, feel free to comment
  2 commentaires
VBBV
VBBV le 4 Août 2023

but problem is after giving inputs nothing is appearing on the screen Can you explain nothing means on the whole computer screen ? Or just the app becomes empty ?

NAVNEET NAYAN
NAVNEET NAYAN le 4 Août 2023
The app doesn't become empty. It opens and when I provide input I am not getting output. Eg. Suppose my app is made to display video of Sign Language Digits. So when I run my app, GUI opens but when I give input 1, then no video appears. However, when I run the app in MATLAB App designer ot run the code of app separately it runs properly.

Connectez-vous pour commenter.

Réponses (1)

recent works
recent works le 4 Août 2023
When you encounter issues with your MATLAB App after exporting and running it on a different system, there are several potential reasons for the problem. Here are some common troubleshooting steps to help you identify and resolve the issue:
  1. Check MATLAB Runtime version compatibility: Ensure that you are using the correct version of MATLAB Runtime that matches the version of MATLAB in which you developed the app. If there is a version mismatch, it can lead to compatibility issues.
  2. Check dependencies and libraries: Make sure that any external dependencies or libraries used in your app are available and properly configured on the target system. If your app relies on certain external files, make sure they are included in the deployment package.
  3. Check file paths: Verify that any file paths used in your app are correctly set for the target system. If you are using absolute file paths, they might not work on a different system. Consider using relative paths or programmatically determining file paths.
  4. Handle file permissions: If your app reads or writes files, ensure that the appropriate file permissions are set on the target system. The app might not be able to access files if the permissions are not set correctly.
  5. Log errors and debug: Include error logging and debugging messages in your app to help identify potential issues. You can use MATLAB's built-in logging functions or output debugging messages to a log file.
  6. Check external toolboxes: If your app uses external toolboxes or custom functions, ensure that they are available and properly installed on the target system.
  7. Test with different input data: The issue might be specific to certain input data. Test your app with various input values to see if the problem persists or if it occurs only with specific inputs.
  8. Review code for platform-specific issues: Check if your code includes any platform-specific code that might cause issues when running on a different system.
  9. Test on a different system: Try running the exported app on another system to see if the issue is system-specific or if it occurs on multiple systems.
  10. Update MATLAB and App Designer: Ensure that both the development machine and the target system have up-to-date versions of MATLAB and the App Designer.
If you have done all the above checks and are still facing issues, consider reaching out to MathWorks support or the MATLAB community forums for further assistance.

Catégories

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

Community Treasure Hunt

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

Start Hunting!

Translated by