Code execution in real-time environments :
Real-Time Workshop offers you a comprehensive framework that allows you to execute code generated in real time and integrated into the execution environment. Depending on the model specified in the periodic sampling produces Real-Time Workshop rates either single-or multi-rate code. The program code is implemented with or without real-time operating system and runs either Singletasking, in multitasking or in asynchronous mode.
Singletasking :
In single-tasking mode, a simple scheduler calls the generated code on a single execution thread and thus prevents the task preemption between different sampling rates.
Multitasking :
In multitasking mode brings a deterministic scheduler ratenmontoner on the generated code, enabling the task preemption between different sampling rates. In bare-board environments, the preemption is done by nested interrupts. In RTOS environments to different priorities and provided the Task be used preemption.
Asynchronous execution :
In asynchronous mode is not periodic or asynchronous rates using Simulink S-functions are defined. Real-Time Workshop, these rates translated into the execution environment used tailored, target-specific code. Program code for trigger subsystems and for events such as hardware interrupts, in each case as a single, independent task model. For real-time operating system VxWorks own block library for asynchronous systems is provided, as you can use a template to create an environment suitable for your individual library.
Bookmarks