Measuring CPU utilization

Knowing the level of target CPU utilization is extremely important in embedded applications. Typically, values in the 70% range are considered acceptable for many applications. Applications that consume more are prone to over framing, a situation where not all the control functions are fully executed and completed in the sample time allotted for the controller. The Target Interface block lets you create an output pin that displays the percent CPU utilization on the target while the executable file is running. In addition, you can place Get CPU Usage blocks within any block in the code-generated executable file to output the individual CPU usage for that specific block.