LAVA 1.0 Content Posted July 20, 2006 Report Share Posted July 20, 2006 Hello, I have a character string to send to a device over a serial link. the string is in the following format $nnRDaaaabbbbzz The nn is a number from 0 to 99 the aaaa is a number from 0000 to 0016 the bbbb is a number from 0000 to 0016 zz is the checksum in hex, and is generated from exclusive ORing each of the preceding bytes. Any tips on how I generate this checksum ? Cheers Mat Quote Link to comment
malef Posted July 20, 2006 Report Share Posted July 20, 2006 Hello,I have a character string to send to a device over a serial link. the string is in the following format $nnRDaaaabbbbzz The nn is a number from 0 to 99 the aaaa is a number from 0000 to 0016 the bbbb is a number from 0000 to 0016 zz is the checksum in hex, and is generated from exclusive ORing each of the preceding bytes. Any tips on how I generate this checksum ? Cheers Mat Mat, process the checksum in a for loop like in attached snippet. Greetings Manfred Download File:post-831-1153377427.vi Quote Link to comment
i2dx Posted July 20, 2006 Report Share Posted July 20, 2006 Any tips on how I generate this checksum ? what about CRC8, CRC16, CRC32, MD5 ? google reveals a lot of links e.g. for "+labview +crc16" .... Quote Link to comment
LAVA 1.0 Content Posted July 21, 2006 Author Report Share Posted July 21, 2006 Manfred, thankyou for your help, modified the VI to give the checksum as a 2 character hex. Works well, once again thanks for your help. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.