User`s guide
8 Targeting Tornado for Real-Time Applications
8-22
Calling rt_main. To begin program execution, call rt_main from WindSh.For
example,
sp(rt_main, vx_equal, "-tf 20 -w", "∗", 0, 30, 17725)
• Begins execution of the vx_equal model
• Specifies no stop time so the program runs indefinitely
• Provides access to all signals (block outputs) in the model by StethoScope
• Uses only individual block names for signal access (instead of the potentially
lengthy hierarchical name)
• Uses the default priority (30) for the
tBaseRate task
• Uses TCP port 17725, the default
priority
The priority of the program’s highest priority task
(
tBaseRate). Not specifying any value (or
specifying a value of zero) causes
tBaseRate to
have the default priority of 30.
TCPport
The port number that the external mode sockets
connection should use. The valid range is 256 to
65535 with 17725 as the default when nothing is
specified.
Table 8-1: Arguments to the rt_main SimStruct (Continued)
model
A pointer to the entry point function in the
generated code. This function has the same name
as the Simulink model. It registers the local
functions that implement the model code by
adding function pointers to the model’s
SimStruct.SeeChapter6,“Program
Architecture,” for more information.