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.


icon

Inputs/Outputs

  • cdigtblrn.png digital data in

    digital data in is the input set of digital data.

  • cdigtblrn.png 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.

  • cu32.png 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.

  • cerrcodeclst.png 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.

  • cu16.png compare mode

    compare mode specifies how to handle values of X for the search.

    0Compare X States (default)—Values of X in digital pattern match only to X states in the input data.
    1Ignore X States—Values of X in digital pattern are wildcards and match to any digital state.
  • idigtblrn.png digital data out

    digital data out returns digital data in unchanged.

  • ii32.png index of pattern

    index of pattern returns the first index in digital data in following start index that matches the location of digital pattern.

  • ierrcodeclst.png 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