Real-Time Workshop User's Guide | ![]() ![]() |
Solver Options
Solver Type. If you are using the S-Function Target, you can specify either a fixed-step or a variable-step solver. All other targets require a fixed-step solver.
Mode. Real-Time Workshop supports both single- and multitasking modes. See Chapter 7, Models with Multiple Sample Rates for full details.
Start and Stop Times. The stop time must be greater than or equal to the start time. If the stop time is zero, or if the total simulation time (Stop - Start
) is less than zero, the generated program runs for one step. If the stop time is set to inf
, the generated program runs indefinitely.
Note that when using the GRT or Tornado targets, you can override the stop time when running a generated program from the DOS or UNIX command line. To override the stop time that was set during code generation, use the -tf
switch.
modelname
-tf n
The program will run for n
seconds. If n = inf
, the program will run indefinitely. See Part 3: Running the External Mode Target Program for an example of the use of this option.
Note
Certain blocks have a dependency on absolute time. If you are designing a program that is intended to run indefinitely (Stop time = inf ), you must not use these blocks. See Appendix A for a list of blocks that depend on absolute time.
|
![]() | Simulation Parameters and Code Generation | Workspace I/O Options and Data Logging | ![]() |