06-26-2006 09:35 AM
06-26-2006 12:09 PM
Hi Benio,
Put the three (or whatever) numbers in a array, add the array content (one function) outcome should be 0x1C8
Truncate this to a U8 (give 0xC8) and invert this which gives 0x37
Does this help ? Can you try to get this in a VI ?
06-30-2006 08:17 AM
Hello K C,
thanks for your reply, what do you mean by ''add the array content ''?
I have put the 3 byte in one dimensional array and then create one function ''add the array content''?
06-30-2006 08:44 AM
06-30-2006 10:14 AM
The checksum is the inverted modulo-256 sum
over all data bytes. The sum is calculated by an 'add with carry' operation with the carry bit of
every addition being added to the LSB of the resulting sum. The addition with revolving carry
improves the protection against MSB failures
06-30-2006 01:54 PM
Hi Benio,
Carry bits and things like that you need when you are programming in assembler.
In your VI just set your controls and indicators to a I16 size and you will get the answer 0x1C8
07-13-2006 03:42 AM
KC,
See how I used your via in my application,
Thx
07-13-2006 03:49 AM
07-13-2006 10:10 AM