From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

CRC-16 with 0x8005 polynomial

Solved!
Go to solution

I am not getting the expect result. I modified the VI to look like this:

 

crc16_mod.PNG

0 Kudos
Message 11 of 22
(4,110 Views)

Could you post a picture of your modified version?

0 Kudos
Message 12 of 22
(4,098 Views)

The 0x1FF3 should be 0x4042...

0 Kudos
Message 13 of 22
(4,095 Views)
Solution
Accepted by topic author swbpnole

Here, use this.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 14 of 22
(4,089 Views)

Could explain this one? Why the changes?

0 Kudos
Message 15 of 22
(4,084 Views)

@swbpnole wrote:

Could explain this one? Why the changes?


This VI is based on a setup I have had for a very long time.  Like I said before, there are many different ways to do a CRC.  In this case, we needed to shift the CRC to the left while the Data is shifted to the left.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 16 of 22
(4,076 Views)

Are you using a PC? This is too wierd I am not getting this...Smiley Sad

0 Kudos
Message 17 of 22
(4,070 Views)

Mine:

 

crc16_mod 2.PNG

0 Kudos
Message 18 of 22
(4,056 Views)

Try right-clicking on the Boolean Array To Number and select properties.  There is a tab in there to allow you to change the output data type.  Change that to a U16.  I'm not seeing anything else obviously wrong.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 19 of 22
(4,038 Views)

Between you and the NI AE, I realized it was my polynomial and initial value representations, both were I32 and should have been U16. Thanks...

0 Kudos
Message 20 of 22
(4,026 Views)