LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

C code

Solved!
Go to solution

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.

0 Kudos
Message 1 of 18
(7,591 Views)

hi prince boeing,

  If you have already used the c-program,why dont you convert to dll and use in labview?

 

Thanks and regards,

srikrishnaNF

Regards,
Srikrishna


0 Kudos
Message 2 of 18
(7,580 Views)

Hi srikrishnaNF,

 

Thank you for your advise. Will work on this direction.

Message 3 of 18
(7,572 Views)

shouldnt the sum be 9A1E?


ignore

0 Kudos
Message 4 of 18
(7,567 Views)

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?

0 Kudos
Message 5 of 18
(7,561 Views)
0 Kudos
Message 6 of 18
(7,560 Views)

Hi muks,

 

I have tried that but it does not give me the correct checksum.

0 Kudos
Message 7 of 18
(7,549 Views)

19613i7A9D46485B9F199C

0 Kudos
Message 8 of 18
(7,544 Views)
Solution
Accepted by topic author Prince Boeing
Message 9 of 18
(7,541 Views)

Thank you muks!

0 Kudos
Message 10 of 18
(7,502 Views)