07-22-2010 03:47 AM
Hi All,
I have this checksum problem. Previously i am using C programming to do the checksum but since LabVIEW does not have a c code function (please correct me if i am wrong), i would need to convert/model it from C to LabVIEW model.
Say i have these few hexa values that i need to compute a checksum (81FF, 178B and 94) and the resulting checksum should be 65E2(hexa). I have tried the VIs of some of the past checksum posts but am unable to get the desired result.
Also, let's say the values that i need to compute a checksum are not of the same format, e.g 81FF(hexa) 1234(decimal), how can i go able to implement a checksum function for these two numbers?
Please help. Thank you.
Solved! Go to Solution.
07-22-2010 03:58 AM
07-22-2010 04:10 AM
Hi srikrishnaNF,
Thank you for your advise. Will work on this direction.
07-22-2010 04:17 AM - edited 07-22-2010 04:20 AM
shouldnt the sum be 9A1E?
ignore
07-22-2010 04:23 AM
Hi muks,
Yes the sum should be 9A1E. 0 - 9A1E will give me 65E2 which is the checksum that i want.
On the other hand, rather than 81FF 178B 94 which are all hexa, let's say my array inputs are 81FF 6027 (decimal) 148 (decimal), will i still be able to get the sum 9A1E?
07-22-2010 04:24 AM
07-22-2010 04:26 AM
Hi muks,
I have tried that but it does not give me the correct checksum.
07-22-2010 04:27 AM
07-22-2010 04:31 AM - edited 07-22-2010 04:39 AM
07-22-2010 07:00 PM
Thank you muks!