ReadLCD Method

NI Vision for Visual Basic

ReadLCD Method

Syntax

CWIMAQVision.ReadLCD SourceImage, LCDInformation, LCDText [, Sign = False] [, DecimalPoint = False] [, LCDSegmentsReport]

Return Type

Long

On success, this method returns 0. On failure, this method returns a negative number.

Purpose

Reads an LCD display in an input image using the regions calculated by the FindLCDSegments. ReadLCD returns the number as a double and as a string. The Segments status output indicates if the number is recognized properly or any of the digits are not recognized fully. This output returns the status of each of the digits in the display. The algorithm tolerates light drift.

Remarks

Use this method with U8, I16, and SGL images.

Parameters

SourceImage As CWIMAQImage

The image that contains the seven-segment display.

LCDInformation As CWIMAQLCDInformation

Information about the indicator calculated by FindLCDSegments.

LCDText As String

Contains the number that has been read from the display. If the decimal separator is ON and the DecimalPoint parameter is True, it is represented in the string by a dot (.) symbol.

Sign As Variant

[Optional] Indicates whether the algorithm must read the sign of the indicator.

Set this parameter to True to search for the sign. Set this parameter to False to not search for the sign.

This parameter has a default value of False.

DecimalPoint As Variant

[Optional] Determines whether to look for a decimal separator after each digit.

Set this parameter to True to search for the separator. Set this parameter to False to not search for the separator.

This parameter has a default value of False.

LCDSegmentsReport As Variant

[Optional] On return, a CWIMAQLCDSegmentsReport containing information about the LCD segments found in the image.

Example

LCD Example

See Also

FindLCDSegments

CWIMAQLCDSegmentsReport