Table Of Contents

Search Ordered Table (G Dataflow)

Last Modified: January 12, 2018

Searches for a value in an ordered array starting at a specific index.

This node works on the assumption that an array of tabulated values of the dependent variable is in monotonically increasing or decreasing order. Therefore, this node can efficiently search for the relative index of the location of a specific value within the array.

connector_pane_image
datatype_icon

ordered x

Tabulated values of the dependent variable in monotonically increasing or decreasing order.

datatype_icon

xi

Value whose relative location the node needs to find within the input array.

datatype_icon

starting index

The assumed initial search location.

This value is usually set to the index of a previous search when the values to locate tend to be near each other in subsequent searches. The closer the starting index is to the true location of xi, the faster the search.

Default: 0

datatype_icon

error in

Error conditions that occur before this node runs.

The node responds to this input 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.

Default: No error

datatype_icon

fractional index

Relative index value of location of the value you specified.

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.

How This Node Searches for a Value

This node starts the search at starting index and begins by using a fast hunting phase to roughly bracket the location and then narrows to the final bracket using a bisection search. This node computes fractional index by using linear interpolation.

Where This Node Can Run:

Desktop OS: Windows

FPGA: Not supported

Web Server: Not supported in VIs that run in a web application


Recently Viewed Topics