Main Content

getApplicationFile

Get name of real-time application file

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 of the real-time application that is installed on the target 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

File name of the real-time application that is installed on the target computer.

See Also

Introduced in R2021b