Read Traces (Variant) VI
- Updated2024-11-20
- 6 minute(s) read
Reads the historical data for a group of traces using the specified time interval, up to the max points per trace specified. You must manually select the polymorphic instance to use.
Use the pull-down menu to select an instance of this VI.

Inputs/Outputs
timeout (30 s)
—
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 (all)
—
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.
database URL
—
database URL specifies the computer name and the database name where the Citadel database resides. Enter the database URL in the format \\computer\database.
trace names
—
trace names specifies the list of historical traces for which you want to read historical data. You can specify either Shared Variable references or existing traces for this parameter. The DSC Module uses these trace names as column headers when you convert this information into spreadsheet format.
time interval
—
time interval is the span of time between the start timestamp and stop timestamp. If you do not wire this input, this VI reads all data logged up to now.
error in (no error)
—
error in describes error conditions that occur before this node runs. This input provides standard error in functionality.
options
—
options specifies the format settings for the data as this VI reads the traces.
database URL out
—
database URL out returns the computer name and the database name that specify where the Citadel database resides. The format is \\computer\database.
historical traces
—
historical traces is the trace data for each input trace name read from the historical database, starting at the date and time specified by start timestamp and stopping at the date and time specified by stop timestamp or up to max points per trace, whichever is smaller.
quality
—
quality is the data quality of the trace(s) read. A value of zero indicates good quality.
error out
—
error out contains error information. This output provides standard error out functionality. |
Read Traces Details
If you do not wire database URL, this VI reads data from the database associated with the default DSC Module process.
If you do not wire time interval, this VI returns all historical data for the traces, up to the max points per trace specified. If you do not wire max points per trace, this VI returns all points between the start and stop timestamps set in time interval. If you do not wire interpolate data, the DSC Module preserves gaps in the data as invalid (NaN) values. If you set interpolate data to TRUE, the DSC Module ignores the gaps, and the trace interpolates across the gap in the data.
Examples
Refer to the NIHyperTrend Graph XML Configuration.lvproj in the labview\examples\lvdsc\HMI Design\NIHyperTrend Graph XML Configuration directory for an example of using the Read Traces VI.
timeout (30 s)
—
database URL
—
trace names
—
time interval
—
start timestamp
—
error in (no error)
—
—
interpolation interval (1 s)
—
database URL out
—
historical traces
—
timestamps
—
data
—
quality
—
error out
—