主要内容

POST install

Install a real-time application on the target computer

Since R2026a

Description

curl -i -X POST http://username:password@address:port/applications/install?app=slrtApplication --header "Content-Type: application/octete-stream" --data-binary @slrtApplicationPath installs the selected compiled, binary real-time application file in the application folder on the target computer.

example

curl -i -k -X POST https://username:password@address:port/applications/install?app=slrtApplication installs the selected compiled, binary real-time application file in the application folder on the target computer. 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 POST command to installed a 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 install real-time application file slrt_ex_osc from the C:\TEMP folder on the development computer.

During R2026a, x64/Linux platform target computers use a cross-compiler as part of the model build process. The real-time application MLDATX file that is generated on the development computer for this platform is binary. You can install this real-time application from the C:\TEMP folder on the development computer by using the command:

curl -i -X POST http://slrt:slrt@192.168.7.20:8080/applications/install?app=slrt_ex_osc.mldatx --header "Content-Type:application/octet-stream" --data-binary @C:/TEMP/slrt_ex_osc.mldatx
HTTP/1.1 200 OK
Server: Boost.Beast/300
Content-Type: application/json
Set-Cookie: sessionId=129edec55231fd6aa0f73058c224b362; Expires=Tue, 26-Aug-2025 15:18:07 GMT; Path=/applications/install?app=slrt_ex_osc.mldatx; HttpOnly
Content-Length: 32

During R2026a, x64ARM/Linux platform target computers (for example, the Speedgoat Pulse target machine) use a remote build in which the real-time application MLDATX file that is generated on the development computer is not compiled. To compile the real-time application for this platform, you use the install(tg,app) function from the MATLAB Command Window to run the remote build. For example,

install(tgLAB,'slrt_ex_osc.mldatx')

After running this command in MATLAB, you can run the curl install command:

curl -i -X PUT http://slrt:slrt@192.168.7.15:8080/applications/install?app=slrt_ex_osc

In a future release, when a cross-compiler is available for the x64ARM/Linux platform, this extra step will be eliminated.

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

The path of the real-time application MLDATX file on the development computer.

Example: slrt_ex_osc

Version History

Introduced in R2026a