07-28-2017 01:31 AM
Hi I am trying to do CRC32 on my data but somehow getting wrong value. I am using the CRC 32 code from the following link:
https://forums.ni.com/t5/Example-Programs/Calculating-the-CRC32-of-a-File-with-LabVIEW/ta-p/3496230
but instead of input a file, I am inputting the HEX value of "000102030405060708090A0B" to test the CRC. When i try to compare the results from online calculator : http://crccalc.com/
and use HEX input,the result matches "
CRC-32/JAMCRC |
0x6D8F369A |
But I should get
CRC-32/MPEG-2 | 0xAD88945B |
I am not sure what the online calculator is reffering to as "Ref in" and "Ref out" as that is the only thing different in two results.
Is there any setting I need to change from the CRC 32 labview code.
Any help would be appreciated.
Thanks
07-28-2017 06:56 AM
The problem with CRCs is that there are so many variations. Here, this code should do what you need.
07-28-2017 06:59 AM
Hi Crossrulz,
I have labview 2014. Can you send me the vi with the 2014 version.
Thanks alot.
07-28-2017 07:04 AM
Here you go.
07-28-2017 07:09 AM
Perfect.
Thanks alot. I will try to implement this into my overall code. I will keep you posted how it goes.
Thanks
11-22-2018 05:57 AM
Hello All,
I have used attached CRC32 VI to generate CRC32 for 1020 bytes (provided in the constant in the VI), but this VI result(CRC32) is not matching with our expected value(29 FB 89 83). I am not sure if I am using correct polynomial or not. The following polynomials I used to generate the CRC32 but none of them matching my expected value.
0x04C11DB7, 0xEDB88320, 0xDB710641, 0x82608EDB
Kindly help to know the correct polynomial.
I have also attached that VI for your reference.
11-22-2018 08:25 AM
@453443474 wrote:
Hello All,
I have used attached CRC32 VI to generate CRC32 for 1020 bytes (provided in the constant in the VI), but this VI result(CRC32) is not matching with our expected value(29 FB 89 83). I am not sure if I am using correct polynomial or not. The following polynomials I used to generate the CRC32 but none of them matching my expected value.
0x04C11DB7, 0xEDB88320, 0xDB710641, 0x82608EDB
Kindly help to know the correct polynomial.
I have also attached that VI for your reference.
This works.
11-23-2018 02:30 AM
Hello,
Wow!... Thanks for the prompt help. I am new to this topic and excited to know about more. Could you please help to share the documents which you have regarding this?
11-23-2018 06:54 AM
@453443474 wrote:
Hello,
Wow!... Thanks for the prompt help. I am new to this topic and excited to know about more. Could you please help to share the documents which you have regarding this?
There is plenty of information out there on the web. Just google it. Along with the Wikipedia.org site, here are a couple more that I find very helpful.
http://www.ross.net/crc/download/crc_v3.txt
11-26-2018 01:43 AM
Hi,
Thanks for your reply. There are plenty of method of CRC32. How did you identify which method to be used to achieve the expected CRC32 value(29 FB 89 83)?
Thanks
Durai S