DTbl 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
digital data in
—
digital data in is the input set of digital data.
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
—
start index specifies the point in digital data in where the search begins. The default is 0, which is the beginning of digital data in. The VI returns an error if start index is out of range for digital data 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 data out
—
digital data out returns digital data in unchanged.
index of pattern
—
index of pattern returns the first index in digital data in following start index that matches the location of digital pattern.
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
digital data in
—
start index
—
error in (no error)
—
compare mode
—
digital data out
—
index of pattern
—
error out
—