Wouter Posted December 27, 2011 Report Share Posted December 27, 2011 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: 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 Quote Link to comment
jgcode Posted December 28, 2011 Report Share Posted December 28, 2011 Yer, these could be nice to have in OpenG. *I think* this is the CRC16 I have used in the past. Quote Link to comment
Ton Plomp Posted December 28, 2011 Report Share Posted December 28, 2011 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 Quote Link to comment
Wouter Posted December 28, 2011 Author Report Share Posted December 28, 2011 @Ton, in the rfc1952 they even use unsigned long. So I would earlier change it to u64 then u8 Quote Link to comment
Wouter Posted December 28, 2011 Author Report Share Posted December 28, 2011 crc16 CCITT crc16 CCITT (0xFFFF).vi crc16 CCITT (0x1D0F).vi crc16 CCITT (0x0000).vi Quote Link to comment
crelf Posted December 28, 2011 Report Share Posted December 28, 2011 Here's an existing colleciton of CRC functions: http://forums.ni.com/t5/LabVIEW/Checksum-calculation/td-p/86249 1 Quote Link to comment
Wouter Posted December 28, 2011 Author Report Share Posted December 28, 2011 crc16-IBM CRC-16-IBM x16 + x15 + x2 + 1 (Bisync, Modbus, USB, ANSI X3.28, many others; also known as CRC-16 and CRC-16-ANSI) crc16 IBM.vi Quote Link to comment
Wouter Posted December 29, 2011 Author Report Share Posted December 29, 2011 Poly VI with CRC8, CRC16-CCITT (0x000, 0x1D0F, 0xFFFF), CRC-IBM, CRC32 Some reading material: http://en.wikipedia.org/wiki/Cyclic_redundancy_check http://www.pvlteam.com/doc/crc/algos.htm http://www.miscel.dk/MiscEl/CRCcalculations.html http://web.archive.org/web/20071221025748/http://www.joegeluso.com/software/articles/ccitt.htm crc.zip 1 Quote Link to comment
crossrulz Posted October 5, 2012 Report Share Posted October 5, 2012 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 Quote Link to comment
rspenze Posted May 20, 2016 Report Share Posted May 20, 2016 Someone maybe send a CRC16-CCITT 0x1021, poly x16+x15+x2+1 labbview 2009 Quote Link to comment
crossrulz Posted May 21, 2016 Report Share Posted May 21, 2016 Here is my 16-bit CRC saved in 2009. 16-bit CRC.vi Quote Link to comment
Олег Швыдюк Posted November 24, 2016 Report Share Posted November 24, 2016 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! Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.