Raptor:Application Monitor: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
Line 1: | Line 1: | ||
[[ | [[Raptor-Platform|Return to the main Raptor page]] | ||
[[Raptor | [[Raptor-Dev-Application-Monitoring|Return to Application Monitor page]] | ||
[[File:RaptorApplicationMonitor.jpg|right|frame|Raptor Application Monitoring]] | [[File:RaptorApplicationMonitor.jpg|right|frame|Raptor Application Monitoring]] |
Revision as of 16:51, 16 December 2016
Return to the main Raptor page
Return to Application Monitor page
Description
The application monitor provides a mechanism for monitoring and controlling the execution of a model on a Raptor™ target. The application monitor can monitor thread execution time and pause the application if a single thread's processor usage is over the defined limit or if the processor idle time is below a minimum. Adding the application monitor block to the model allows enabling additional code generation which will provide this functionality. Note: Not all Raptor targets use a pre-emptive operating system. This means that an infinite loop in a task may cause the module to reset rather than stop the application through the application monitor.
Application Monitor States
State | Description |
---|---|
Always Running | This state disables pausing the application and allows it to run continuously. The application monitor will still continue to monitor the execution time of threads. |
Running | In this state the model will run until a pause condition (appmonitor stop, thread time > maximum, idle time < minimum) is asserted. |
Pause | In this state all the timed triggers in the model are disabled. CAN triggers and communication will continue to be active. |
Step | Entering this state causes all the timed triggers to execute their steps. Once all timed triggers have executed their steps the AppMonitorState will return to pause. |
Reboot | Entering this state forces the module to reboot. |
Parameters
Parameter | Type | Description |
---|---|---|
Enable AppMonitor | This enables generation of the application monitor code. This allows the application monitor to be completely removed from the generated code without removing all the blocks which depend on the application monitor. | |
Startup Action | This sets the default state of the application monitor when the controller first boots. | |
Min Idle Time | Number 0-100 | This specifies the threshold of processor idle time below which the application monitor will pause the application. |
Max Thread Time | Number 0-100 | This specifies the threshold of thread execution time above which the application monitor will pause the application. |
Access Level | Sets the access level of this item in the calibration tool. |