Read Tag Trace (Variant) VI
- Updated2024-11-20
- 5 minute(s) read
Reads the historical trace of a tag. You must manually select the polymorphic instance to use.
Use the pull-down menu to select an instance of this VI.

Inputs/Outputs
![]() timeout specifies the maximum time, in seconds, that this VI waits for reading data from the Citadel database. The default is 30. A timeout value of less than or equal to 0 specifies no timeout, which means this VI waits indefinitely until this VI receives data from the Citadel database. ![]() max points per trace specifies the maximum number of points to read from the database. This VI returns all available points of this trace between start timestamp and stop timestamp in the following cases: max points per trace is less than zero. The number of the data points between start timestamp and stop timestamp is less than the max points per trace. If max points per trace is zero, this VI returns no point for the trace. The default is -1. ![]() Tag Reader in specifies the data of a group of tags that the Open Tag Reader VI opens. ![]() tag name specifies the name of the tag for which you want to read the historical data. ![]() time interval specifies the span of time between the start timestamp and stop timestamp. If you do not wire this input, this VI reads all data that is relevant to the specified tag from the Citadel database, up to max points in trace.
![]() error in describes error conditions that occur before this node runs. This input provides standard error in functionality. ![]() database URL specifies the computer name and the database name where the Citadel database resides. Enter the database URL in the format \\computer\database. ![]() options specifies the format settings for the data as this VI reads the trace.
![]() Tag Reader out returns the value of the Tag Reader instance. ![]() historical trace returns the historical trace for the specified tag.
![]() quality returns the data quality of the trace this VI reads from a tag. A value of zero indicates good quality. Refer to the quality output of the DataSocket Read function for detailed descriptions of the quality values. Use the Shared Variable Error from Quality VI to convert this code to an error I/O cluster. ![]() error out contains error information. This output provides standard error out functionality. |