Main Content

getApplicationFile

Get name of real-time application file

Since R2021b

Description

example

filename = getApplicationFile(target_object,app_name) returns the development computer full path, file name, and extension of the MLDATX file for the real-time application that is installed on the target computer identified by the target_object.

If the MLDATX file for app_name is not found on the MATLAB path of the development computer, it is copied from the target computer to a temporary folder on the development computer.

If the MLDATX file for the real-time application is not installed on the target computer, the returned filename is empty.

Examples

collapse all

Get the file name on the development computer of the real-time application that is installed on the target computer. This example is for a Windows® development computer.

filename = getApplicationFile(tg, "slrt_ex_osc")
filename =

    'C:\work\R2021b\myApps\slrt_ex_osc.mldatx'

Input Arguments

collapse all

Provides access to methods that manipulate the target computer properties.

Example: tg

Provides name of real-time application MLDATX file that you built from the model.

Example: 'slrt_ex_osc'

Output Arguments

collapse all

Returns the development computer full path, file name, and extension of the real-time application MLDATX file for the application installed on the target computer.

Version History

Introduced in R2021b

See Also