Skip to content

[BUG] Incorrect Data Type Definition in GetResultAsString Method of TcoDataman_v_5_x_x in TcoCognexVision #5

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
mhareznik opened this issue Mar 14, 2025 · 0 comments
Assignees
Labels
bug Something isn't working question Further information is requested

Comments

@mhareznik
Copy link
Contributor

Issue Description
There is an issue in the TcoDataman_v_5_x_x function block within the TcoCognexVision library. The GetResultAsString method is currently defined with a data type STRING, which by default allows only 80 characters. This limitation can lead to truncated results when longer strings are returned.

Expected Behavior
The return data type for the GetResultAsString method should be updated to STRING(255) to accommodate longer strings and avoid truncation issues.

Steps to Reproduce
Call the GetResultAsString method when the returned string exceeds 80 characters.
Observe that the string is truncated to 80 characters.

Suggested Fix
Update the data type of GetResultAsString from STRING to STRING(255) in the TcoDataman_v_5_x_x function block.

Impact
This fix will allow the method to handle longer strings without truncation, improving the accuracy and completeness of the returned data.

@mhareznik mhareznik added bug Something isn't working question Further information is requested labels Mar 14, 2025
@peterbarancek peterbarancek assigned peterbarancek and unassigned PTKu Mar 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants