Use Tag Values to Divide a Date Range into Runs
  • 06 Feb 2024
  • PDF

Use Tag Values to Divide a Date Range into Runs

  • PDF

Article summary

Purpose: Learn to use the Criteria grid to divide a date range into runs using tag values.

Task: Use the Trend’s Run Browser to divide a date range into runs using the Criteria grid. Add a tag and divide runs when the tag’s values meet the specified condition, for example when the value is greater than zero. Send the runs to the grid, then load them in the Trend. Try out using a Trend in run mode.

Steps:

  1. Create a Trend with at least one tag.

  2. Right-click the plot area of the Trend and choose Run Browser.

  3. On the Run Filter tab, select Single Run for Date Range as the run source. Use the calendars to set the start and end times.

  4. On the Settings ribbon, click Load Runs in Trend to preview the date range.

  5. Next, expand the Criteria section.

  6. Open Tag Browser. Choose a tag to use as the run divider tag. This tag’s values will be used to determine the run times. It is helpful also to add the tag to the trend, but not necessary.

  7. Change the Type to Divide.

  8. Select an Operator. This determines how that tag’s values will be compared to the specified value (with the exception of Change, see Criteria). In this example, the goal will be to create run times when the divider tag’s values are greater than zero. In other words, this will remove all time when the tag’s value is zero or less.

  9. Enter “0” (zero) in the Value field.

  10. Click Send Runs To Grid. Here you can preview the runs that are generated before loading them and choose which runs to load. Click Load All or choose one or more runs and click Load Selected.

  11. Try unchecking Show Run Dividers.

  12. While in run mode, the Trend’s Zoom feature works for individual runs. Also, instead of cloning the whole trend, double-clicking a run will launch a trend of that timespan. Try both.

  13. To delete a run, right-click the time axis. The selected run is highlighted in red.

  14. Use SmartMouse to view run information.

  15. Back in the Run Browser, change the Normalization to To Run. Leave the Aggregate as Time Average. This setting will show a single tag value per run that is the time-weighted average of the tag’s values over the length of the run.


Was this article helpful?