LatencyDisplay

NOTE:  This sample uses MFC and is only supported in a Multi-Byte configuration. To build this sample in Visual Studio 2013, you must first install an additional library from Microsoft, available at: https://www.microsoft.com/en-us/download/confirmation.aspx?id=40770

Description

The RTX Timer Latency Display provides a histogram of timer interrupt latencies (to the Interrupt Service Thread) for an RTSS application. The Y axis is the number of events (log scale). The X axis is the latency in microseconds. The red-colored portion of the graph's bars reflects the last second's activity.

Source Files

NtRtss.rtss project source file:

RtssDisplay.exe project source files:

Remarks

To run, start one instance of the NtRTSS.rtss timer interrupt handler and then start the RTSSDisplay.exe GUI.

NOTE:  The Latency Display application allows you to view much of what is used in the RtxDemo application, available from the main RTX menu.

APIs Referenced

RTAPI

RtCancelTimer

RtCreateTimer

RtDeleteTimer

RtEnablePortIo

RtGetClockTime

RtGetClockTimerPeriod

RtLockProcess

RtReadPortUchar

RtSetTimerRelative

RtWritePortUchar

 

IntervalZero.com | Support | Give Feedback