Using the Monitor Utility

Use the Monitor utility to dynamically start and stop monitoring, set session triggers for automatic monitoring, change the events being monitored from the defaults set in the Control Panel, and convert the session folders created by the Monitor Utility into human readable text files which show the details of each event in the order in which the events happened.

NOTE: Monitoring causes as much as one microsecond of latency depending on the real time operation. It is recommended that you only enable and start monitoring during development and that you disable monitoring in production. The amount of latency depends on how many kinds of events are being monitoring and how frequently those events occur in real-time applications. Monitoring fewer kinds of events reduces the impact of monitoring on latency.

ClosedOpening the Monitor utility

The method you use to access the Monitor utility will depend on the operating system you are running.

To open the Monitor utility in Windows 10 and Windows 8.1:

From the Windows Apps menu, navigate to the RTX64 Runtime section and click the RTX64 Monitor tile.

To open the Monitor utility in Windows 7:

Click Start > IntervalZero RTX64 Runtime and then choose RTX64 Monitor.

Understanding Monitor Status

The RTX64 Subsystem has these monitoring states:

The current monitoring status is displayed across all pages in the RTX64 Monitor dialog. Depending on the current state, you can do the following:

Monitor Settings

The Monitor utility dialog contains four pages:

Page Description

Start a session

Manually start, pause, and stop a monitoring session.

Set session triggers

Use triggers to start collection automatically.

Customize event collection

Customize monitor events to collect.

Manage session logs

Convert a session log to a text file. You can also delete session logs from this page.

NOTE: The changes you make to the Monitor utility settings are lost when the Subsystem is stopped.

 

To Start/Pause/Stop a session:

You can manually start, pause, and stop monitoring sessions in the Start a session page.

If you click Start while monitoring is currently disabled, you are warned "Enabling monitoring may cause some non-determinism." Select Yes or No. You can enable monitoring and set defaults for event collection in the Control Panel.

Once monitoring is running, all events selected for collection are captured in session data files. You can change event selection while a session is running through the Customize event collection page in the Monitor utility.

If you have configured triggers, a message appears on the Start a session page. Since monitoring starts automatically when triggers are enabled, you do not need to start monitoring manually.

 

Set session triggers:

In the Set session triggers page you can associate monitor events with a trigger to start event collection automatically.

  1. Select the check box(es) for the event(s) you want to associate with a trigger, or select the Monitoring Events check box to associate all events with a trigger.

To configure Custom Events, expand the Custom Events tree, and then:

  1. When you have finished selecting trigger events, click Set.

NOTE: A new session may start depending on the events selected.

IMPORTANT! Selected event triggers are automatically set when you close the Monitor utility.

Page Behavior

The options available from the Set session triggers page depend on the current monitoring status.

NOTE: The following states assume the Subsystem is started. When the Subsystem is not started, the Set session triggers page is grayed out.

When monitoring is... Set session triggers functionality is...
Disabled Enabled. You can set session triggers.
Enabled Enabled. You can set session triggers.
Started Disabled (grayed out). Pause or stop the current session to set session triggers.
Paused Enabled. You can set session triggers.
Stopped Enabled. You can set session triggers.

 

Customize event collection:

In the Customize event collection page, you can dynamically change which events you are monitoring by selecting/clearing check boxes for specific events. The events in the drop-down are identical to those listed in the Control Panel. Changes take place immediately and are in effect while the Subsystem is running and when Monitoring is enabled via the Control Panel.

To include network-related events, such as RT-TCP/IP Stack events, select the check box Include network events in next session. When selection of this check box is cleared, network-related events will not be collected.

NOTE: The changes you make to event collection in the Monitor utility do not affect the persistent settings in the Control Panel.

NOTE: If you have configured triggers, the associated events must be selected in the Customize event collection page for the events to be collected when triggered.

NOTE: Use the Monitoring events check box to select all or clear all events.

Manage session logs:

In the Manage session logs page, you can convert monitoring data from a monitor session file (.monx) to a readable log file (.txt). You can also delete older sessions that you no longer need.

NOTE: Converting data can take several moments if the session contains a large amount of data, or if it is the active monitoring session.

  1. Click Manage session logs.
  2. In the Session file to convert field, specify the monitor session file (.monx) you want to convert. Click Browse to navigate for the session file.
  3. Specify the path of the Output file (.txt). By default, the output file is the session folder in which the log selected for conversion resides. Click Browse to change the default location.
  4. Click Convert.

The text file is automatically launched in your default text editor when the conversion is completed. Each text file is 500 MB and has the form YYYYMMDD_HHMMSS_xxx.N.txt, where N is an integer from 1 to the number of 500 MB text files required to contain the information in the original binary file.

 

If you start running low on space, you might need to manually delete session folders. To delete session folders:

  1. Browse for the session folder you want to delete.

Subfolders use the naming convention YYYYMMDD_HHMMSS_N, where N is an integer between 1 and the total number of monitoring sessions for that second.

  1. Click Delete.

Related Topics: