01-07-2025 11:39 AM
Hi, Need help converting this Python code that implements a CRC-24Q that I believe is correct into LabVIEW code. I'm close since the CRC-24q table values match my reference Python code, but I'm having trouble where the CRC is actually generated.
Three examples listed in the Python code are:
The Labview code originated from this post: https://forums.ni.com/t5/Example-Code/Calculating-the-CRC32-of-a-File-with-LabVIEW/ta-p/3496230
By DGardner.
Thanks,
SS
Solved! Go to Solution.
01-07-2025 12:02 PM
If the python code is correct, the error in your LabVIEW code is that you're shifting the character in the input string instead of the CRCBuffer. Then XOR the unshifted character with the shifted CRCBuffer
01-07-2025 01:08 PM - edited 01-07-2025 01:08 PM
As elset stated, you issue is you are shifting the wrong data for the 16 bit right shift. I did some other minor cleanup in the attached code.