12-01-2009 08:21 PM
I've written functions in C to calculate CRC-CCITT but not in Labview. Does anyone have a VI to do this that they would like to share?
Using CRC-CCITT (XModem) (1021) the CRC for example for 0x12 would be 0x3273, and for 0x13 it would be 0x2252.
Thanks for any help.
Solved! Go to Solution.
12-01-2009 08:54 PM
12-01-2009 09:06 PM
I've tried searching with no luck for the particular CRC that I'm lookng for. I'm trying to figure out how to call a C function from Labview now.
Thank you
12-01-2009 10:43 PM
12-02-2009 07:53 AM
I found the message that you're talking about previously but I dont get the same results.
WTW_CRC16_Calculator[1] gives me 11 -> 10D6 and 12-> 20B5
CRC-16 gives me 11 -> F4D5 and 12 ->F 595
CRC16_Calculator gives me 11 -> 10D6 and 12 -> 20B5
Results should be 11 -> 0210 and 12-> 3273
12-02-2009 09:10 AM - edited 12-02-2009 09:11 AM
chuck72352 wrote:I found the message that you're talking about previously but I dont get the same results.
WTW_CRC16_Calculator[1] gives me 11 -> 10D6 and 12-> 20B5
CRC-16 gives me 11 -> F4D5 and 12 ->F 595
CRC16_Calculator gives me 11 -> 10D6 and 12 -> 20B5
Results should be 11 -> 0210 and 12-> 3273
When I tried CRC16_Calculator with 0x11 and 0x12 I got 0x0210 and 0x3273, respectively, which is what you were looking for. All Boolean controls were set to False. Did you change the "String in" control's display format to Hex?
Also, be aware that there is no "correct result". Only a result based on certain conditions.
12-02-2009 09:25 AM