Table Of Contents

Search for Digital Pattern (G Dataflow)

Last Modified: March 31, 2017

Searches for a digital pattern in the specified digital signal.

connector_pane_image
datatype_icon

start value format

Search method that indicates where to begin the specified operation.

This input only appears when you wire a waveform to digital data in.

Name Value Description
Samples 0 The subset begins from a particular element from the set of waveform data in digital waveform in.
Relative Time 1 The subset begins from the data value at a particular time.

Default: Samples

datatype_icon

digital waveform

Digital waveform that you want to search.

This input appears when you wire a waveform to digital data in. If you wire digital data to digital waveform in, this input changes to digital data in.

datatype_icon

digital data

Set of digital data that you want to search.

This input appears when you wire digital data to digital waveform in. If you wire a waveform to digital data in, this input changes to digital waveform in.

datatype_icon

digital pattern

Digital pattern you want to use to search.

Discovering Digital Pattern Matches

digital pattern
datatype_icon

start index/time

Data element or time value specified by digital waveform in where the search begins. You specify whether this is an index or time in indexing mode.

This input appears when you wire a waveform to digital data in. If you wire digital data to digital waveform in, this input changes to start index.

Determining Integer Multiples

  • When start value format is set to Relative Time, this node checks start index/time to determine if it is an integer multiple of the dt component of the specified digital waveform.
  • If start index/time is not an integer multiple of dt, this node uses the closest exact multiple of dt.

Errors with an Out of Range start index/time

This node returns an error if start index/time is out of range for digital waveform in.

Default: 0—Beginning of digital waveform in.

datatype_icon

start index

Data element specified by digital data in where the search begins.

This input appears when you wire digital data to digital waveform in. If you wire a waveform to digital data in, this input changes to start index/time.

Errors with an Out of Range start index

start index digital data in

Default: 0—Beginning of digital data in.

datatype_icon

error in

Error conditions that occur before this node runs. Unlike most nodes, this node runs normally even if an error occurs before this node runs.

Default: no error

datatype_icon

compare mode

Method to handle values of X for the search.

Name Value Description
Compare X States 0 Values of X in digital pattern match only to X states in the input data.
Ignore X States 1 Values of X in digital pattern are wildcards and match to any digital state.

Default: Compare X States

datatype_icon

index/time of pattern

First index or time value in digital waveform in following start index/time that matches the location of digital pattern.

This output appears when you wire a waveform to digital data in. If you wire digital data to digital waveform in, this output changes to index of pattern.

Determining what start value format Represents

start value format index/time of pattern start value format index/time of pattern
datatype_icon

index of pattern

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

This output appears when you wire digital data to digital waveform in. If you wire a waveform to digital data in, this output changes to index/time of pattern.

datatype_icon

error out

Error information.

The node produces this output according to standard error behavior.

Standard Error Behavior

Many nodes provide an error in input and an error out output so that the node can respond to and communicate errors that occur while code is running. The value of error in specifies whether an error occurred before the node runs. Most nodes respond to values of error in in a standard, predictable way.

error in does not contain an error error in contains an error
If no error occurred before the node runs, the node begins execution normally.

If no error occurs while the node runs, it returns no error. If an error does occur while the node runs, it returns that error information as error out.

If an error occurred before the node runs, the node does not execute. Instead, it returns the error in value as error out.

Where This Node Can Run:

Desktop OS: Windows

FPGA: This product does not support FPGA devices


Recently Viewed Topics