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

  • cu16.png start value format

    start value format specifies the search method.

    0Samples (default)—The subset begins from a particular element from the set of waveform data in digital waveform in.
    1Relative Time—The subset begins from the data value at a particular time.
  • cdigwdt.png digital waveform in

    digital waveform in is the input digital waveform.

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

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

  • 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.
  • idigwdt.png digital waveform out

    digital waveform out returns digital waveform in unchanged.

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

  • 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