Contenuto principale

slrealtime.includeAddonFilesForDeployedApp

R2026b

Include add-on files for deployed Simulink Real-Time app

Since R2026a

Description

slrealtime.includeAddonFilesForDeployedApp(arch) directs the Standalone Application Compiler to include platform-specific add-on files when compiling the app for deployment. When you include a call to this function in the startupFcn callback of an App Designer app or anywhere in a MATLAB script, the extension point mechanism collects and packages additional platform-specific files and includes these files in the compiled standalone app.

example

Examples

collapse all

Include add-on files for a deployed app that is compatible with an x64-based target computer. Call this function in the startupFcn callback of your App Designer app.

slrealtime.includeAddonFilesForDeployedApp("x64");

Input Arguments

collapse all

Target architecture, specified as "x64", "aarch64", or "all".

  • "x64" — Include add-on files for x64-based target computers.

  • "aarch64" — Include add-on files for ARM64-based target computers.

  • "all" — Include add-on files for all supported target architectures. Using this option increases the compiled application size significantly because it bundles binaries for all architectures. The combined size may exceed the 2 GB limit for standalone application compilation, causing the build to fail. To avoid this issue, specify only the architecture that matches your target computer, or use the compiler.build.standaloneApplication (MATLAB Compiler) function with the 'EmbedArchive' option set to 'off' to keep the deployable archive as a separate file instead of embedding it in the executable.

Example: "x64"

Data Types: string

Version History

Introduced in R2026a