User`s guide

Run-time Architecture Overview
8-5
Run-time Architecture Overview
In a typical VxWorks-based real-time system, the hardware consists of a UNIX
or PC host running Simulink connected to a VxWorks target CPU via Ethernet.
In addition, the target chassis may contain I/O boards with A/D and D/A
converters to communicate with external hardware. The following diagram
shows the arrangement:
Figure 8-1: Typical Hardware Setup for a VxWorks Application
The real-time code is compiled on the UNIX or PC host using the cross compiler
supplied with the VxWorks package. The object file (
model.lo) output from the
Real-Time Workshop program builder is downloaded, using
WindSh (the
command shell) in Tornado, to the VxWorks target CPU via an Ethernet
connection.
The real-time program executes on the VxWorks target and interfaces with
external hardware via the I/O devices installed on the target.
Parameter Tuning and Monitoring
You can change program parameters from the host and monitor data with
Scope blocks while the program executes using Simulink external mode. You
can also monitor program outputs using the StethoScope data analysis tool.
Using Simulink external mode and/or StethoScope in combination allows you
to change model parameters in your program “on the fly” and to analyze the
results of these changes in real-time.
VxWorks Target
Ethernet
Host
Simulink
Real-Time Workshop
Target
CPU
Ethernet
Port
ADC/DAC
Boards
model.lo
Tornado Compiler