stop
Stop execution of real-time application and unload it from the target computer
Description
stop(
        stops execution of the real-time application that is running on the Speedgoat® target computer, which is represented by the
          target_object,AutoImportFileLog)target_object. Before using this method, you must create, load,
        and start the real-time application on the target computer. 
- If a real-time application is loaded on the target computer and is running, - stop(tg)stops execution and unloads the application.
- If a real-time application is loaded on the target computer and is not running, - stop(tg)unloads the application.
- If no real-time application is loaded or running on the target computer, - stop(tg)does nothing (no warning or error is generated).
You can also stop the real-time application from the RTOS command line. For more information, see Execute Target Computer Command-Line Commands Via SSH and Target Computer Command-Line Interface.

