ValidateIDData
Performs validation, which conforms to MIL-STD 130 and GS1, of the data decoded from an ID Code that is initially read by either the ReadIDMax or ReadIDCode functions. For more information, see ReadIDMax and ReadIDCode.
- The ReadIDCode function is only available on In-Sight vision systems using In-Sight firmware 4.x.x, and is not available on In-Sight vision systems running In-Sight firmware 5.1.0 and later. For a complete list of models and supported firmware versions, see Firmware Versions.
- Cognex recommends that the ReadIDMax function be used instead of the ReadIDCode function, which is a legacy function. The ReadIDMax function has enhanced performance capabilities.
- When using a color In-Sight vision system, the ReadIDCode function must reference an Image processing function (for example, ColorToGreyscaleFilter), which converts the color image to greyscale. For more information, see Image.
ValidateIDData Inputs
Syntax: ValidateIDData(IDCode,Validation Options,DoD UID Construct,)
Parameter | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
This argument must reference a spreadsheet cell that contains either a valid IDMax data structure returned by the ReadIDMax function, or a valid IDCode data structure returned by the ReadIDCode function. Note: If referencing a ReadIDMax function, the Verify parameter must be enabled. If referencing a
ReadIDCode function, the Algorithm
parameter must be enabled.
|
|||||||||||||
Specifies which validation option is used.
|
|||||||||||||
Specifies type of DoD UID Construct to validate. Note: This parameter
is only enabled when DoD UID is the selected value for the Validation Options parameter.
|
ValidateIDData Outputs
Returns |
An IDValid data structure containing validation metrics of the symbol or #ERR if any of the input parameters are invalid. |
Results |
When the function is initially inserted into a cell, the validation status will automatically appear in the adjacent cell to the right of the IDValid data structure, along with an applicable information string. For more information, see IDValidate. |
ValidateIDData Vision Data Access Functions
When the ValidateIDData function is initially created, the following Vision Data Access functions are automatically inserted into the spreadsheet to create the result table:
Valid |
GetValid(IDValid) |
The validity of the data (0 = not valid, 1 = valid). |
Diagnostic Info |
GetDiagnosticString(IDValid) |
Returns an applicable diagnostic information string. |
Additional data elements can be accessed using the IDValidate Vision Data Access functions. For more information, see IDValidate.