Table Of Contents

Set Valid Characters (G Dataflow)

Last Modified: June 25, 2019

Specifies the characters that are valid for each character position in the image.

connector_pane_image
datatype_icon

OCR session in

OCR session on which the node operates.

To create a session, use the Create OCR Session node.

datatype_icon

valid characters

Array of characters that are valid for a particular read character position.

The valid characters are stored at the array index that corresponds with the index of the read character that OCR is currently evaluating. For example, if OCR is evaluating the read character at index 0, it compares that read character to the valid characters that are stored at index 0 in the array of valid characters. The number of elements in the array is the number of characters that OCR reads. OCR ignores any array elements beyond this number.

datatype_icon

pre-defined characters

Pre-defined valid character strings.

The following characters are the pre-defined characters for the corresponding position:

Name Value Description
any character 0

Any ASCII character

user-defined characters 1

Uses characters specified in the user-defined characters string.

alphabets 2

A-Z

a-z

alphanumeric 3

A-Z

a-z

0-9

uppercase letters 4

A-Z

lowercase letters 5

a-z

decimal digits 6

0-9

hexadecimal digits 7

0-9

A-F

pattern 8

Any Pattern

force space 9

Ignores the read character and forces a space at the corresponding position

datatype_icon

user-defined characters

String of characters that is valid for the corresponding character position when pre-defined characters is set to user-defined characters.

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

OCR session out

OCR session on which this node operates.

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: Not supported

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


Recently Viewed Topics