Main Content

install

Install real-time application on target computer

Since R2020b

Description

example

install(target_object,app_name) installs a real-time application on the target computer if the application does not exist on the target computer or if the checksum of the previously installed application does not match the application in the install command.

You also can install the real-time application from the RTOS command line. For more information, see Execute Target Computer RTOS Commands at Target Computer Command Line and Target Computer Command-Line Interface.

example

install(target_object,app_name,'force') installs a real-time application on the target computer without checking for a previously installed application.

Examples

collapse all

Install the real-time application slrt_ex_osc on the target computer TargetPC1, represented by target object tg.

tg = slrealtime('TargetPC1');
slbuild('slrt_ex_osc');
install(tg,'slrt_ex_osc');

Force an installation of the real-time application slrt_ex_osc into target computer TargetPC1, represented by target object tg. By using the force option, the function installs the real-time application on the target computer without checking for a previously installed application or checking whether a previously installed version of the application is up to date.

tg = slrealtime('TargetPC1');
slbuild('slrt_ex_osc');
install(tg,'slrt_ex_osc','force');

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'

Version History

Introduced in R2020b

expand all