LabVIEW Datalogging and Supervisory Control Module

Table of Contents

Decimate Trace VI

  • Updated2023-02-21
  • 3 minute(s) read

Decimate Trace VI

Owning Palette: Historical VIs

Requires: DSC Module

Decimates, or resamples, historical trace data from the start timestamp to the stop timestamp.

The decimated trace output is a 1D array of the value at each time interval from the first timestamp to the last timestamp.

sample interval determines the time interval for each historical trace. If you do not wire this parameter, the data is sampled at 1 second intervals.
check start/stop time? determines whether the requested start and stop times are checked against data available in the historical trace. If this parameter is TRUE, this VI checks the start and stop timestamps against the first and last timestamps in the historical trace. The first/last timestamp in the trace is used instead of any requested start/stop time out of the range of the trace. To override this and use the input values regardless of the data points in the trace, set this parameter to FALSE.
historical trace is the historical trace passed into this VI.
timestamps is the date and time for the data points in the data array.
data is the data logged for the shared variable at the corresponding timestamp. This input can be a numeric or bit array data type.
start timestamp is the start date and time of data you want to retrieve from the historical trace input. If you do not wire this input, this VI uses the timestamp of the first data point from the historical trace input.
stop timestamp is the end date and time of data you want to retrieve from the historical trace input. If you do not wire this input, this VI uses the timestamp of the last data point from the historical trace input.
error in describes error conditions that occur before this node runs. This input provides standard error in functionality.
decimated trace is a list of historical trace values starting at first timestamp. Each trace value is sample interval seconds apart.
first timestamp is the date and time associated with the first data point retrieved from the historical database.
last timestamp specifies the date and time associated with the last data point retrieved from the historical database.
error out contains error information. This output provides standard error out functionality.

Log in to get a better experience