Tag Constant
- Updated2023-02-17
- 2 minute(s) read
Tag Constant
Represents a tag reference on the diagram.
Use this constant to select the static tag reference from which to read or to which to write.
What Is a Tag?
A tag is single-point, latest value data that you can access from multiple documents within a project. A tag can store a single value of any data type that represents the state of a process. Tags are similar to global variables in text-based programming languages.
You can create a tag either dynamically, using the Configure and Create Tag node on the diagram, or statically, in the shared resource collection file.
You can create a tag to access the same data from multiple VIs within a project.
What Is a Tag Proxy?
A tag proxy is a reference that is local to part of the application that mirrors the value of the actual tag to which it is linked in another location in the application. You use a tag proxy to access data that is in another location in the application. You can read from and optionally write to a tag proxy only after the tag proxy links to a tag.
Using a Tag Constant
Complete the following steps to statically create and configure a tag.
- Create or open a shared resource collection document.
Note Shared resource collection documents have the .grsc file extension.
- Expand the Tag section and click Create New.
- Configure the data type, initial value, and other properties of the tag in the Item tab.