User Event Signal Plot / Advanced

The User Event Signal Plot views display plots of data values from User Events—custom events generated by RtGenerateEvent. Each plotted curve represents a signal, which is a group of user events according to the definition of the signal.

Custom events contain the following:

Tracealyzer includes two User Event Signal Plot views, each available from the Views menu:

Both views work with custom events parsed with a definitions file. The advanced view is only needed if you need regular expressions to extract the values from a string.

A user event in Tracealyzer can include one or more raw values in addition to the formatted string. When just setting the default custom event format under Settings, or when not using a format, no such value will be set in the event, but when a definitions file is used for an event type, the raw values will be set. The simple user event plots the first numeric raw value of any user event, ignoring all formatting.

The User Event Signal Plot (Advanced) view extracts values from the formatted strings using regular expressions. If you were to store a single int or float in a custom event, parse it using a custom event definitions file, and then plot it using the User Event Signal Plot (Advanced) view, you’ll effectively convert the binary value to a string and then parse the string back to the same binary value and then plot it.

NOTE: The numeric value of the floating point number is likely to be distorted by these binary-to-text/text-to-binary conversions.

Plotting of user event signals is useful for analyzing control system inputs and outputs, but you can use it to visualize other data. Like other Tracealyzer views, this is connected to the main trace view, which allows for correlating the signal values with the scheduling and other recorded events.

For instance, if you spot an anomaly in a monitored output signal of a control loop, you can click on the data point to show the specific user event in the trace view. This allows you to analyze what was going on at this time — perhaps the scheduling caused an extra delay of the control loop thread which affected the signal.

View Options

The View menu contains several options that allow you to change the graph’s display and content.

Menu Option Description
Clone View

Creates a duplicate copy of the view in the same window.

Draw Markers

Toggles display of markers.

Markers in Actor Color

Sets all markers to the actor color if Draw Markers is selected.

Line Style

Choose a line style for the graph to display:

  • No Lines
  • Steps
  • Straight

Signal Setup

(Advanced view only.) Opens the Signal Setup dialog, through which you can create signals for plotting user events data.

Show Unit on Scale

Toggles display of the units of measurement.

Configure Y-Axis (Advanced view only.)
Setup Scale

(Default view only.) Opens the Setup Scale dialog, through which you can choose an automatic (default) or manual scale.

Show Bookmarks

Toggles display of bookmarks

Show Legend

Toggles display of the color legend.

Show ScrollBar

Toggles display of the scrollbar.

Signal Setup

Use the Signal Setup dialog, available under View > Signal Setup in the User Event Signal Plot (Advanced) view, to create signals for plotting user events data. Note that this is just one way to create a signal. The simple view plots signals defined in the XML definitions file.

A signal is essentially a filter that is applied on all user event strings to extract the values to plot, in the form of a regular expression and some related settings. Two signals are predefined, intended for use with the included demo trace, but you can edit or delete them as needed.

Templates are provided that are easy to import and adaptable.

NOTE: All changes made are stored on disk automatically.

The Signal Setup dialog displays all of your signals in a list view. You can manage your signals using these options:

Use the Signal Editor, located in the upper right of the Signal Setup dialog, to edit the selected event channel.

See Defining Parsing Rules for Custom Events in Tracealyzer for information on how to define channel names.

 

Regular expressions use the .NET Framework regular expression engine, which is Perl 5 compatible. If you are unfamiliar with regular expressions, there are plenty of tutorials available at http://www.zytrax.com/tech/web/regex.htm.

Use the Signal Tester, located in the lower right of the Signal Setup dialog, to test the selected signal using example data. Signal Tester contains three fields:

If the signal setup is incorrect for some reason, the specific input field turns red.

Signal Templates

You can load and save signal setups as templates for future use using the Use Template and Save as Template options. Both options open the Signal Templates dialog that displays the templates available in a grid view. The grid view contains one line per template, with the same properties as in the editor, except that color is not a part of the template and there is also an extra field for a description of the template.

NOTE: The name field is the template name, not the signal name, so this is not copied to the Signal Editor when applying the template.

The Signal Templates dialog contains these options:

To create a new template:

To create a new template, edit the empty line at the bottom of the grid view, and then press Enter. If there is an error in the template, the Resulting Value cell of the affected row will turn red.

To edit an existing template:

Edit the fields corresponding to that template directly in the grid view. When you edit a template, the changes are automatically evaluated using the example data and the result is then shown in the Resulting Value column.

 

Related Topics ABOUT TRACEALYZER:

rELATED tOPICS ABOUT MONITORING: