| Real-Time Workshop | ![]() |
Some Simulink blocks use the value of absolute time (i.e., the time from the beginning of the program to the present time) to calculate their outputs. If you are designing a program that is intended to run indefinitely, then you cannot use blocks that have a dependency on absolute time.
The problem arises when the value of time reaches the largest value that can be represented by a double precision number. At that point, time is no longer incremented and the output of the block is no longer correct.
| Note In addition to the blocks listed below, logging Time (in the Workspace I/O page of the Simulation Parameters dialog box) also requires absolute time. |
The following Simulink blocks depend on absolute time:
The following Simulink blocks depend on absolute time:
Note
The Sine Wave block is dependent on absolute time only when the Sine type parameter is set to Time-based. Set this parameter to Sample-based to avoid absolute time computations.
|
In addition to the Simulink block above:
| Glossary | Targeting DOS for Real-Time Applications | ![]() |