I can't run fastaread and uigetfile over the runtime-based standalone app!!!!

4 visualizaciones (últimos 30 días)
Hi all,
I can't run uigetfile followed by fastaread to load my fasta file. I checked and runit several times in the app designer but now it does not run in the standalone executable version (running alongside MATLAB runtime ver. 9.10)!!! That's so important to my app. Please help and guide me. My code is here:
function BrowseDBButtonPushed(app, event)
[fileDB,pathDB] = uigetfile({'*.fasta'}, 'Load FASTA Proteome DB');
if fileDB==0
return;
end
filenameDB = [pathDB fileDB];
DB = fastaread(fileDB);
DBcell = struct2cell(DB);
end
Thanks

Respuestas (2)

Shravan Kumar Vankaramoni
Shravan Kumar Vankaramoni el 6 de Oct. de 2021
Hi,
As you are able to Run it in the AppDesigner but it is not working once converted to an executable. So the problem could be the mismatch between MATLAB version you used to compile and the Runtime version. The application will be linked to specific version of MCR you used to compile. A newer or older MCR installed doesnt work with an app compiled in a specific version of MCR.
Refer the below links to solve the version mismatch issue:
  1 comentario
Mohammad Shahbazy
Mohammad Shahbazy el 6 de Oct. de 2021
Hi Shravan,
Thanks for your reply. No, I am using Runtime ver. 9.10 and MATLAB R2021a that are matched.

Iniciar sesión para comentar.


Steven Lord
Steven Lord el 6 de Oct. de 2021
filenameDB = [pathDB fileDB];
This line looks slightly suspicious. I'd prefer to use fullfile to assemble the filename.
filenameDB = fullfile(pathDB, fileDB);
If that doesn't resolve the problem, can you provide a bit more detail about what "it does not run" means in this context?
  • Do you receive warning and/or error messages if you launch the application from a Windows command prompt window or a terminal window in Linux or Mac? If so the full and exact text of those messages may be useful in determining what's going on and how to avoid the warning and/or error.
  • Does it do something different than what you expected? If so, what did it do and what did you expect it to do?
  • Did the application crash? If so please send the crash log file (with a description of what you were running or doing in the app when the crash occured) to Technical Support using the Contact Support link on the Support section of the MathWorks website so we can investigate.
  1 comentario
Mohammad Shahbazy
Mohammad Shahbazy el 7 de Oct. de 2021
Editada: Mohammad Shahbazy el 7 de Oct. de 2021
Thanks for your replies and ansewrs.
I did what you recmmended but now I have a new big issue to test it!
When I try to install the standalone it shows this error message "cannot find nonembedded CTF archive!".
I tried to find a solution but I have not any efficient one. I am using compatible Runtime (v910) and Matlab (R2021a) versions.
Please kindly guide me.
Many thanks

Iniciar sesión para comentar.

Categorías

Más información sobre App Building en Help Center y File Exchange.

Productos


Versión

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by