Table Of Contents

Monitoring Data with Tags

Last Modified: May 16, 2018

Create and configure a tag to track the value of a piece of scalar data.

In LabVIEW, you can create and configure a tag programmatically with the Tags API in the Skyline folder on the Data Communication palette. In NI SystemLink Web Application, you can create and configure a tag in Tag Viewer. This procedure describes how to create and configure a tag in NI SystemLink Web Application.

  1. In Tag Viewer, click Create.
  2. Specify a path, or name, for the tag.

    Use dot separators instead of slashes. The tag path is how you programmatically reference the tag in LabVIEW.

  3. Specify the data type of the values the tag will hold.
  4. Specify the retention type, which determines how long to store values in the tag's history. After you configure your tag, you can see a chart of current and past values under History.
  5. Specify whether the tag will aggregate values. Aggregate values to calculate Min, Max, Mean, and Count values every time a tag is updated. You can view these values in the Tag Viewer list of tags.
  6. Click Create.
  7. Click the gear next to the tag to view details and to set keywords or properties for the tag. You can use keywords and properties to search for tags in Tag Viewer or in LabVIEW using Query Tags.
  8. Click Tag Viewer to return to your list of tags.
  9. To search for a tag, click the filter button next to the search bar and specify whether to search by tag path, keywords, or properties of the tag. You can include multiple queries, but only tags matching all the queries will show as results. You can also use the wildcard character (*) in your path queries.

After you create and configure a tag, you can use the Tags API in LabVIEW to write values to tags, read tags, query tags, and perform other operations. You can also use NI SystemLink Web Application to create alarms or data visualizations using your tag values.

Recently Viewed Topics