Contenuto principale

slrealtime.testSetup

Run series of confidence tests that check development-to-target computer communications

Since R2026a

Description

slrealtime.testSetup(target_object) runs a series of confidence tests that check development-to-target computer communications. The confidence tests include:

  1. Ping target computer IP address by using system ping.

  2. Ping target computer IP address by using SSH.

  3. Verify file transfer by using FTP.

  4. Verify target computer software image.

  5. Verify target computer operating system environment.

  6. Verify development-to-target computer MQTT protocol communication.

  7. Verify development-to-target computer HTTP/HTTPS protocol communication.

  8. Execute Simulink® Real-Time™ workflow to build, load, and run a real-time application on the target computer.

example

Examples

collapse all

Run a series of confidence tests that check development-to-target computer communications.

Create a target object and run the testSetup function.

tg = slrealtime
slrealtime.testSetup(tg)
### Simulink Real-Time Test Suite 
### Target IP address is: "192.168.7.5"
### Test 1, Ping target computer '192.168.7.5' using system ping: ... OK
### Test 2, Ping target computer '192.168.7.5' using matlab SSH object: ...OK
### Test 3, Verify file transfer connectivity: ...
 verifying file transfer with FTP ... OK
### Test 4, Verify target image version: ...OK
### Test 5, Verify target environment file: ...OK
### Test 6, Verify MQTT connectivity: ...
 MQTT broker is active...OK
### Test 7, Verify HTTP/HTTPS connectivity: ...
 REST API server is active...OK
### Test 8, Simulink Real-Time basic workflow: ...

 Openning Simulink Real-Time model 'slrt_ex_osc_nrt' ... OK

 building model slrt_ex_osc_nrt with speedgoat.tlc: ... 
### Searching for referenced models in model 'slrt_ex_osc_nrt'.
### Total of 1 models to build.
### Starting build procedure for: slrt_ex_osc_nrt
### Using Speedgoat toolchain version: v1.1.3_build_3f612c5 (x86_64)
### Successful completion of build procedure for: slrt_ex_osc_nrt
### Created MLDATX ..\slrt_ex_osc_nrt.mldatx

Build Summary

Top model targets:

Model            Build Reason                                         Status                        Build Duration
==================================================================================================================
slrt_ex_osc_nrt  Information cache folder or artifacts were missing.  Code generated and compiled.  0h 1m 13.951s

1 of 1 models built (0 models already up to date)
Build duration: 0h 1m 21.395s

 Loading model slrt_ex_osc_nrt: ... OK

 Running simulation for model slrt_ex_osc_nrt until stopped: ... OK

 Running normal mode simulation for : slrt_ex_osc_nrt ... OK

 Verifying simulation data: ... OK
### All tests have been passed!

Input Arguments

collapse all

Object that represents target computer, specified as a Target object. The object provides access to methods that manipulate the target computer properties.

Example: tg

Version History

Introduced in R2026a