Table Of Contents

Write Tag (G Dataflow)

Version:
    Last Modified: March 15, 2017

    Writes a data value to a tag.

    connector_pane_image
    datatype_icon

    tag ref in

    The reference to the tag you want to write a data value to.

    datatype_icon

    value

    The data value that this node writes to the tag.

    This input accepts any data type.

    datatype_icon

    timestamp

    The timestamp you want to associate with the data value that this node writes to the tag.

    This input is available only if you enable the Has Timestamps? property of the tag. In order to associate a timestamp with the data, you must enable the Has Timestamps? property of the tag.

    If you do not wire this input and Has Timestamps? is enabled, this node automatically generates the current timestamp and associates it with the data value in the tag.

    datatype_icon

    error in

    Error conditions that occur before this node runs.

    The node responds to this input according to standard error behavior.

    Standard Error Behavior

    Many nodes provide an error in input and an error out output so that the node can respond to and communicate errors that occur while code is running. The value of error in specifies whether an error occurred before the node runs. Most nodes respond to values of error in in a standard, predictable way.

    error in does not contain an error error in contains an error
    If no error occurred before the node runs, the node begins execution normally.

    If no error occurs while the node runs, it returns no error. If an error does occur while the node runs, it returns that error information as error out.

    If an error occurred before the node runs, the node does not execute. Instead, it returns the error in value as error out.

    Default: No error

    datatype_icon

    tag ref out

    The reference to the tag that this node wrote a data value to.

    datatype_icon

    error out

    Error information.

    The node produces this output according to standard error behavior.

    Standard Error Behavior

    Many nodes provide an error in input and an error out output so that the node can respond to and communicate errors that occur while code is running. The value of error in specifies whether an error occurred before the node runs. Most nodes respond to values of error in in a standard, predictable way.

    error in does not contain an error error in contains an error
    If no error occurred before the node runs, the node begins execution normally.

    If no error occurs while the node runs, it returns no error. If an error does occur while the node runs, it returns that error information as error out.

    If an error occurred before the node runs, the node does not execute. Instead, it returns the error in value as error out.

    What is a Tag?

    A tag can store a single value of any data type. Tags are similar to global variables in text-based programming languages. You can create a tag to access the same data from multiple VIs within a project.

    Creating and Configuring a Tag

    Complete the following steps to create and configure a tag.

    1. Create or open a shared resource collection document.
      spd-note-note
      Note  

      Shared resource collection documents have the .grsc file extension.

    2. Expand the Tag section and click Create New.
    3. Configure the data type, initial value, and other properties of the tag in the Item tab.

    Where This Node Can Run:

    Desktop OS: Windows

    FPGA: This product does not support FPGA devices


    Recently Viewed Topics