主要内容

PUT stop

Stop real-time application on target computer

Since R2026a

Description

curl -i -X PUT http://username:password@address:port/applications/stop stops execution of the running real-time application file on the target computer.

example

curl -i -k -X PUT https://username:password@address:port/applications/stop stops execution of the running real-time application file on the target computer by using HTTPS secure protocol. The additional -k option for the curl command directs the connection to accept a self-signed certificate. For information about creating certificate and key files and enabling HTTPS support, see setupTLSCertificate.

example

Examples

collapse all

At the system prompt, use the curl PUT command to stop execution of a running real-time application on the target computer. In this command, user slrt with password slrt is commanding the target computer at IP address 192.168.7.20 and port 8080 to stop execution of the running real-time application file.

curl -i -X PUT http://slrt:slrt@192.168.7.20:8080/applications/stop
HTTP/1.1 200 OK
Server: Boost.Beast/300
Content-Type: application/json
Set-Cookie: sessionId=6864d59c2f7b1f46b134327894163443; Expires=Tue, 26-Aug-2025 14:47:06 GMT; Path=/applications/stop; HttpOnly
Content-Length: 148

{"application":"slrt_ex_osc","modelName":"slrt_ex_osc","state":"DONE","stopTime":100,"logLevel":"info","pollingThreshold":0.0001,"fileLogMaxRuns":1}

The status for the stop of application slrt_ex_osc which was generated from model slrt_ex_osc is DONE. Additional status information includes the application options: stop time, log level, polling threshold and file log max runs.

Input Arguments

collapse all

The name of the user with access to run the command on the target computer.

Example: slrt

The password of the user with access to run the command on the target computer.

Example: slrt

The IP address of the target computer.

Example: 172.20.146.111

The port number used by the target computer.

Example: 8080

Version History

Introduced in R2026a