09-14-2020 09:25 AM
There is a nice .vi for CRC32 (https://forums.ni.com/t5/Example-Code/Calculating-the-CRC32-of-a-File-with-LabVIEW/ta-p/3496230).
Is there something similar for the Adler-32 checksum?
Solved! Go to Solution.
09-14-2020 09:34 AM
09-14-2020 09:46 AM
Hi GerdW,
not yet, but will do so I guess if there are no "stock" .vi available...
09-15-2020 03:54 AM - edited 09-15-2020 04:05 AM
Here's an implementation:
09-15-2020 04:01 AM
09-15-2020 04:07 AM
sure, & thanks. still need to get used to programming in LV 😉
08-24-2023 09:13 AM - last edited on 07-02-2024 11:56 AM by pcerda
The Adler-32 solution by MrFuppes is incorrect for large data sets. The high (B, s2) and low (A, s1) should be converted to U32 prior to the add and modulus.
Example:
"abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz"
ADLER-32: 0x09832C7D
05-21-2024 08:02 AM
rcpacini,
thank you for reporting this! Kind of a stupid mistake... unfortunately it seems I cannot remove the code I posted. I've marked your answer as 'solution', I hope this helps.
05-21-2024 10:15 AM
Go to your post, click the "Options" dropdown, then "Report to a moderator". In that field, explain you'd like to remove the attachment since there's a bug, and they can edit the post for you.