Idle Loop Time Get

This MotoHawk™ block allows the application to query the last and maximum observed idle loop time.

Block ID

Idle Loop Time Get

Library

motohawk_tasking_lib/Metrics

Description

Idle loop time is the time between successive executions of the idle loop. The maximum observed idle loop time is the maximum observed loop time since it was last reset. The maximum loop time approximates the maximum length of a burst of 100% CPU utilization. The Starvation Time of the Starvation Timer Definition block should be set to be larger than this maximum.

Signals

last (us)

The last observed idle loop time in microseconds.

max (us)

The maximum observed idle loop time in microseconds since being reset by the block or since power-up.

reset

The maximum observed loop time will be set to the last observed loop time while this input is true.

Block Parameters

Parameter Field Values Comments/Description
Name (optional) Alpha numeric Name the block with a unique C-legal name or leave empty and MotoHawk™ will assign a name automatically.
Resource Popup Idle loop time is supported if a selection other than (None) is available. Select a resource that is not (None) to enable.
Get Maximum Loop Time Checkbox Check this box to allow the block to query for the maximum observed loop time and to expose the input port that allows the maximum logged value to be reset.
Warn on None Checkbox Check this box to allow the block to generate a warning should the block be populated in the model with a Resource value of (None). This can occur if a model is ported from a module that supports this metric to a module that doesn't.