APP file was not included in the standalone executable

5 views (last 30 days)
Hi support:
I have generated .net share library for loading .mldatx to the target machine, but when excute the load(apppath),the .net tell me "Cannot load 'slrt_ex_pendulum_100Hz' on target 'TargetPC1': Cannot install 'slrt_ex_pendulum_100Hz' on target 'TargetPC1': Real-time application 'slrt_ex_pendulum_100Hz.mldatx' was not included in the standalone executable."
Error in => loadApi.m at line 7."
and then I put the 'slrt_ex_pendulum_100Hz.mldatx' into the ctf folder(standalone executable), and .net program is ok, so there is a problem:
the apppath of ‘ load(apppath)’ is absolute path ,why the mcr still can't find the 'slrt_ex_pendulum_100Hz.mldatx',
it seems that the external file that will be transmit in to the ctf file must be put into the in to the ctf folder(standalone executable) ,but the apppath is often changed,and can't be put into the ctf folder.
so do you have any better idea to solve the problem?
  1 Comment
Steven Lord
Steven Lord on 8 Aug 2022
What product or products are you using to try to create this standalone application? Are you using MATLAB Compiler, MATLAB Coder, Embedded Coder, Simulink Coder, and/or some other products listed in the Code Generation and/or Application Deployment sections on this webpage?

Sign in to comment.

Answers (0)

Community Treasure Hunt

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

Start Hunting!