User`s guide
1 Getting Started
1-6
• Relation to the kernel — The executable must be loaded and executed
directly by the Real-Time Windows Target kernel. It cannot be executed
without the kernel.
The kernel runs as a kernel-mode driver, intercepts timer interrupts from
the PC clock, maintains clock signals for the Windows operating system, and
ensures real-time execution of the real-time application. As a result, both the
kernel and the real-time application run at CPU ring zero.
•
Checksum — The Simulink model and the executable contain a checksum
value. The kernel uses this checksum value to determine if the Simulink
model structure, at the time of code generation, is consistent with the
real-time application structure during execution. This ensures that when
you change parameters during an execution, the mapping of Simulink model
parameters to the memory locations in the real-time application is correct.
If you make structural changes to your Simulink model, the Simulink
checksum value will not match the executable checksum value. You will have
to rebuild your executable before you can connect it to your Simulink model.
Signal Acquisition and Analysis
You can acquire, display, and save signals by using Simulink Scope blocks and
Simulink external mode. This lets you observe the behavior of your model
during a simulation or your application while it runs in real time.
You can acquire signal data while running your real-time applications using
•
Signal Tracing — Process of acquiring and visualizing signals during a
real-time run. It allows you to acquire signal data and visualize it on your
computer while the executable is running.
•
Signal Logging — Process for acquiring signal data during a real-time run.
After the run reaches its final time or you manually stop the run, you can plot
and analyze the data.
You can save (log) data to variables in the MATLAB workspace or save data
to your disk drive with MAT-files.
Signal logging differs from signal tracing. With signal logging you can only look
at a signal after a run is finished.