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

4 views (last 30 days)
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

Answers (2)

Shravan Kumar Vankaramoni
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:

Steven Lord
Steven Lord on 6 Oct 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 Comment
Mohammad Shahbazy
Mohammad Shahbazy on 7 Oct 2021
Edited: Mohammad Shahbazy on 7 Oct 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

Sign in to comment.

Categories

Find more on App Building in Help Center and File Exchange

Products


Release

R2021a

Community Treasure Hunt

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

Start Hunting!