Jump to content
News about the LabVIEW Wiki! Read more... ×
Wouter

CRC32

Recommended Posts

VI Name:

CRC32

Total VIs:

3

Description:

I was suprised LabVIEW didn't had the CRC32. So I made it, http://en.wikipedia.org/wiki/Cyclic_redundancy_check, http://www.ietf.org/rfc/rfc1952.txt. It can take a array of U32, one element of U32 or a string. When needed I can create more CRC checks, CRC8, CRC16, etc... but CRC32 is the most used one I readed.

Note:

-

Blockdiagram:

gallery_17774_56_22701.png

What are you thoughts on this VI?

  • Would you like to see such a function in OpenG?
  • Can you optimize the code?
  • In which package should it be included?
  • Should it be rejected?

crc32.vi

crc32 (Element).vi

crc32 (String).vi

Share this post


Link to post
Share on other sites

Yer, these could be nice to have in OpenG.

*I think* this is the CRC16 I have used in the past.

Share this post


Link to post
Share on other sites

Hi Wouter,

that looks nice, I think we should include it in the MD5 package (together with the SHA hashes I've created).

However I would use an array of U8 instead of U32.

Ton

Share this post


Link to post
Share on other sites

@Ton, in the rfc1952 they even use unsigned long. So I would earlier change it to u64 then u8 ;)

Share this post


Link to post
Share on other sites

Here's a few generic CRC VIs I made sometime over the years. They do not use the lookup tables, so they may be a little slower. But they can be set to any CRC configuration.

Included are an 8-bit, 16-bit, and 32-bit versions.

CRC.llb

Share this post


Link to post
Share on other sites

Someone maybe send a CRC16-CCITT 0x1021, poly x16+x15+x2+1 labbview 2009

Share this post


Link to post
Share on other sites
On 05.10.2012 at 8:58 PM, crossrulz said:

Here's a few generic CRC VIs I made sometime over the years. They do not use the lookup tables, so they may be a little slower. But they can be set to any CRC configuration.

Included are an 8-bit, 16-bit, and 32-bit versions.

CRC.llb

Thanks!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×

Important Information

By using this site, you agree to our Terms of Use.