主要内容

PUT load

Load real-time application on target computer

Since R2026a

Description

curl -i -X PUT http://username:password@address:port/applications/load?app=slrtApplication loads the selected real-time application file.

example

curl -i -k -X PUT https://username:password@address:port/applications/load?app=slrtApplication loads the selected real-time application file 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 load an installed 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 load real-time application file slrt_ex_osc from the applications folder on the target computer.

curl -i -X PUT http://slrt:slrt@192.168.7.20:8080/applications/load?app=slrt_ex_osc
HTTP/1.1 200 OK
Server: Boost.Beast/300
Content-Type: application/json
Set-Cookie: sessionId=bffc726a95d8171520c813c0dd5a9a54; Expires=Tue, 26-Aug-2025 14:39:34 GMT; Path=/applications/load?app=slrt_ex_osc; HttpOnly
Content-Length: 148

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

The status for the load of application slrt_ex_osc which was generated from model slrt_ex_osc is LOADED. 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

The name of the real-time application file.

Example: slrt_ex_osc

Version History

Introduced in R2026a