Main Content


Get state of application deployed to target computer

Since R2022b



    state = getApplicationState(tg, applicationName) returns the state of the specific application on the particular target.


    collapse all

    Get the state of deployed application state myApplication on the target.


    Input Arguments

    collapse all

    Object represents a target computer. Use the object to establish the connection with Linux target, to deploy the applications on Linux target, and perform several other actions.

    Example: myTargetHandle

    Specify the name of the application that is deployed on to the target.

    Example: myApplication

    Output Arguments

    collapse all

    Returns an enum value indicating the state of the specific application deployed on to the target. State of the application can have following values.

    State valueIndicating
    IDLEdeployed application has not been launched or terminated
    RUNNINGdeployed application is running on the target
    SUSPENDEDdeployed application is paused on target

    Version History

    Introduced in R2022b