Real-Time Workshop | ![]() ![]() |
Solver Options
Solver Type. If you are using an S-function or Rapid Simulation (RSIM) target, you can specify either a fixed-step or a variable-step solver.
Mode. Real-Time Workshop supports both single- and multitasking modes. See 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.
The program will run for n
seconds. If n = inf
, the program will run indefinitely. See Part 3: Running the External Mode Target Program of the Real-Time Workshop Getting Started Guide 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 B, "Blocks That Depend on Absolute Time for documentation on which blocks behave this way.
|
![]() | Simulation Parameters and Code Generation | Workspace I/O Options and Data Logging | ![]() |