Real-Time Windows Target™ 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 rtwtdemo in the MATLAB® Command Window.
Once you have finished installing the Real-Time Windows Target software and kernel, you should test the installation by running the model rtvdp. If you change your installation, you should repeat this test to confirm that the Real-Time Windows Target software is still working. To open the example model, type rtvdp in the MATLAB Command Window, or launch MATLAB Help, open Real-Time Windows Target, and choose Examples > Real-Time Van der Pol Simulation.
|On this page…|
The model rtvdp 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 will test the installation by running Simulink Coder™ code generation software, Real-Time Windows Target software, and the Real-Time Windows Target kernel.
After you have installed the Real-Time Windows Target kernel, you can test the entire installation by building and running a real-time application. The Real-Time Windows Target software includes the model rtvdp, which already has Simulink Coder options selected for you:
The Simulink model rtvdp window opens.
Double click Switch To External Mode on the model.
The MATLAB Command Window displays the following messages:
### Starting build procedure for model: rtvdp ### Generating code into build folder: C:\Work\rtvdp_rtwin ### Invoking Target Language Compiler on rtvdp.rtw . . . ### Successful completion of build procedure for model: rtvdp
The MATLAB Command Window displays the following message:
Model rtvdp loaded
The target application begins running.
The real-time application stops running, and the Scope window stops displaying the output signals.
The Real-Time Windows Target 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
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 timer(s) 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 driver(s) are installed on your system at the address and with the parameter(s) shown for each driver.
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 see these models from the MATLAB environment: