DWDT Search for Digital Pattern VI
- Updated2025-07-30
- 3 minute(s) read
Searches for a digital pattern in the digital input. Wire data to the digital waveform in input to determine the polymorphic instance to use or manually select the instance.

Inputs/Outputs
start value format
—
start value format specifies the search method.
digital waveform in
—
digital waveform in is the input digital waveform.
digital pattern
—
digital pattern specifies the digital pattern for which you want to search. For example, if you acquire a large digital waveform and want to see if any part of the digital waveform matches a certain pattern, wire that pattern to the digital pattern input to discover any matches.
start index/time
—
start index/time specifies the point in digital waveform in where the search begins. You specify whether this is an index or time in indexing mode. The default is 0, which is the beginning of digital waveform in. When indexing mode is set to Relative Time, this VI checks start index/time to determine if it is an integer multiple of dt. If start index/time is not an integer multiple of dt, this VI uses the closest exact multiple of dt. This VI returns an error if start index/time is out of range for digital waveform in.
error in (no error)
—
error in describes error conditions that occur before this node runs. With the following exception, this input provides standard error in functionality. This node runs normally even if an error occurred before this node runs.
compare mode
—
compare mode specifies how to handle values of X for the search.
digital waveform out
—
digital waveform out returns digital waveform in unchanged.
index/time of pattern
—
index/time of pattern is the first index or time value in digital waveform in following start index/time that matches the location of digital pattern. If indexing mode is set to Relative Time, index/time of pattern represents the time. If indexing mode is set to Samples, index/time of pattern represents the index.
error out
—
error out contains error information. This output provides standard error out functionality. |
Examples
Refer to the following example files included with LabVIEW.
- labview\examples\Controls and Indicators\Graphs and Charts\Digital Waveform Graph\Search Digital Data for Pattern.vi
start value format
—
digital waveform in
—
digital pattern
—
start index/time
—
error in (no error)
—
digital waveform out
—
index/time of pattern
—
error out
—