Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Image CRC checkum help

Solved!
Go to solution

Hi,

 

I would appreciate your help.

My CVS1458RT is freezing with (1/2) camera  (using same VI) and I think it's because I am receiving corrupted images from that camera.

 

I'm using a Basler Racer camera and I'm able to read the "IMAQdxChunkData_CameraAttributes::ChunkData::ChunkPayloadCRC16", I would like now to compare it to the received image CRC but I don't really know what to do.. I think I have to calculate that CRC from that image right? How can I do that?

 

Anyone can help me on that?

 

thank you 

Patrick

0 Kudos
Message 1 of 4
(77 Views)

Hi,

 

Basler mentioned the CRC checksum is calculated using the X-modem method so I tried to calculate the CRC from the image using the "crc 2.vi" (polynomial x1021 and initial value at 0). Basler say the CRC is calculated without the CRC checkksum so I tried different thing, removing the key / not removing the key and I can't get the same CRC has the chunk CRC.

 

If anyone can help.

 

Thank you.

Patrick

 

 

Download All
0 Kudos
Message 2 of 4
(45 Views)

Hi Patrick,

I haven't used CRC on CRIO but I do use CRC on my FPGA code.

I am afraid you might have some miss understanding with Basler. Usually USB 3.0 or any USB / GigE communication going in packets. 

CRC is calculated on the packet. Not on the whole image. It is part of the USB standard. 

Seems to me like you are trying to calculate the CRC on the whole image. It shouldn't be the same.

Did Basler told you they calculate CRC on the whole image?

 

Thanks - Amit

Amit Shachaf
0 Kudos
Message 3 of 4
(31 Views)
Solution
Accepted by topic author paubin

Finally got it.

I had to remove the chunk part of the crc before calculating the crc of the image.

 

paubin_0-1637789424404.png

 

0 Kudos
Message 4 of 4
(33 Views)