Contenido principal

update

Update RTOS version on target computer

Description

update(target_object) updates any out-of-date, not-current version RTOS files on the Speedgoat® target computer. When you update the RTOS on the target computer, the process removes the target computer applications folder and the installed real-time application MLDATX files.

example

update(target_object,'force',true) forces an update of all RTOS files on the Speedgoat target computer to the current version. When you update the RTOS on the target computer, the process removes the target computer applications folder and the installed real-time application MLDATX files.

example

update(target_object,'agreeToEULALicense','yes') updates the RTOS files on the Speedgoat target computer by accepting the End User License Agreement (EULA). When you update the RTOS on the target computer in standalone mode, the process requires you to accept the license agreement. This option is for non-interactive acceptance of the license agreement and does not ask for the response though the GUI or console during the update process. For more information about target computer modes, see Real-Time Application and Target Computer Modes.

example

Examples

collapse all

Create a target object that represents the target computer. Update the RTOS version on the target computer. Connect the development computer and target computer.

tg = slrealtime('TargetPC1');
update(tg);
connect(tg);

Create a target object that represents the target computer. Force the update of the RTOS version on the target computer. The force option is needed for some RTOS states. Connect the development computer and target computer.

tg = slrealtime('TargetPC1');
update(tg,'force',true);
connect(tg);

Create a target object that represents the target computer. Update the RTOS version on the target computer by accepting the EULA. Connect the development computer and target computer.

tg = slrealtime('TargetPC1');
update(tg,'agreeToEULALicense','yes');
connect(tg);

Input Arguments

collapse all

Object that represents target computer, specified as a Target object. The object provides access to methods that manipulate the target computer properties.

Example: tg

Version History

Introduced in R2020b

expand all