Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

Run Confidence Test

Simulink® Desktop Real-Time™ includes several example models you can use to test your installation. These models are preconfigured with settings such as target and scope settings, sample time, and integration algorithm. To see these models, type sldrtexamples in the MATLAB® Command Window.

    Note:  

    • You can run examples in Simulink normal mode (initial setting), accelerator mode, or Simulink external mode.

    • You cannot run a Simulink Desktop Real-Time model in rapid accelerator mode.

Once you have finished installing the Simulink Desktop Real-Time software and kernel, test the installation by running the model sldrtex_vdp. If you change your installation, repeat this test to confirm that the Simulink Desktop Real-Time software is still working. To open the example model, type sldrtex_vdp in the MATLAB Command Window, or start MATLAB Help, open Simulink Desktop Real-Time, and choose Examples > Real-Time Van der Pol Simulation.

Run the Model sldrtex_vdp

The model sldrtex_vdp does not have I/O blocks, so that you can run this model regardless of the I/O boards in your computer. Running this model tests the installation by running Simulink Coder™ code generation software, Simulink Desktop Real-Time software, and the Simulink Desktop Real-Time kernel.

After you have installed the Simulink Desktop Real-Time kernel, you can test the entire installation by building and running a real-time application. The Simulink Desktop Real-Time software includes the model sldrtex_vdp, which already has Simulink Coder options selected for you:

  1. In the MATLAB Command Window, type

    sldrtex_vdp

    The Simulink model sldrtex_vdp window opens.

  2. Double-click Switch To External Mode on the model.

      Tip:   The model is initially in normal mode. To start real-time normal mode simulation, click Simulation > Run.

  3. Click the Run button   on the toolbar.

    After building the model and displaying messages in the Diagnostic Viewer, the target application begins running.

  4. To stop the simulation before the end, click the Stop button   on the toolbar.

    The real-time application stops running, and the Scope window stops displaying the output signals.

Display Status Information

The Simulink Desktop Real-Time software provides the command rtwho for displaying the kernel version number, followed by timer, driver, and other information. To see this information, in the MATLAB Command Window type:

rtwho

The command displays several lines of information in the MATLAB Command Window. Some possible lines and their interpretations are:

TIMERS:  Number    Period  Running
              1      0.01      Yes

The indicated timers exist on your system with the period and run status shown for each timer.

DRIVERS:           Name    Address   Parameters
         Humusoft AD512      0x300    []
                    ecg          0     []

The indicated device drivers are installed on your system at the address and with the parameters shown for each driver.

Examples Library

The examples library includes models with preset values and dialog boxes. These models include simple signal processing and simple control examples that use no I/O blocks, use A/D blocks only, and use both A/D and D/A blocks.

To run an example that uses I/O blocks, you must configure the block to match the I/O board installed in your computer.

    Note:  

    • You can run examples in Simulink normal mode (initial setting), accelerator mode, or Simulink external mode.

    • You cannot run a Simulink Desktop Real-Time model in rapid accelerator mode.

To see these models from the MATLAB environment:

  1. Type sldrtexamples in the MATLAB Command Window.

    The Simulink Desktop Real-Time Examples window appears.

  2. From the list, select the example to open it.

Was this topic helpful?