Main Content

getApplicationState

R2026b

State of deployed application on Linux target computer

Since R2022b

Description

state = getApplicationState(tg,appName) retrieves the current execution state (IDLE, RUNNING, or SUSPENDED) of the deployed application on the Linux target computer.

example

Examples

collapse all

Retrieve the state of the deployed application myApplication on the Linux target computer.

Get the target computer object.

tg = getTarget(linux.Targets,"LinuxTarget1");

Retrieve the application state.

state = getApplicationState(tg,"myApplication")
state =

    RUNNING

Input Arguments

collapse all

Target computer for the deployed application, specified as a linuxTarget object. The object provides access to methods that manipulate the target computer properties.

Example: tg

Application MLDATX file name that you build from the model, specified as a character vector or string scalar.

Example: 'adaptive_application'

Output Arguments

collapse all

Application state, returned as an enumeration. The enumeration can have three values.

Enum valueRepresents
IDLEApplication is deployed but not started.
RUNNINGApplication is running.
SUSPENDEDApplication is paused.

Version History

Introduced in R2022b