madcobra Posted July 14, 2009 Report Share Posted July 14, 2009 Dear my friend, I using Block camera with Rs232 for controller zoom and wide. I want to write program in Labview for this. They protocol looklike DEFAULT is 19200bps.Data Length: 8 bit Start Bit: 1 bit Stop Bit: 1 bit Parity: None Flow Control: None Checksum format : Bit 0-6: Take the value that sets the lower 7 bits of the values added from the header to the checksum to 0. Bit 7: Fixed [0] Command for Zoom is A0 02 05 CS FF (A0 is header , 02 05 is message, CS Checksum, FF is teminal ) ( Checksum is 27, right ? A0 02 05 27 FF ) Wide A0 02 06 CS FF Zoom, Wide Stop A0 02 07 CS FF Please help me calculate Checksum in Labview 8.5 Thanks alot Jean Martin Quote Link to comment
crossrulz Posted July 14, 2009 Report Share Posted July 14, 2009 Assuming I'm understanding your checksum protocol correctly, this should do the trick. Quote Link to comment
madcobra Posted July 15, 2009 Author Report Share Posted July 15, 2009 Assuming I'm understanding your checksum protocol correctly, this should do the trick. Thanks alot Crossrulz. Quote Link to comment
crossrulz Posted July 15, 2009 Report Share Posted July 15, 2009 Just quickly thinking about it again (after reading the RSS), the masking (AND) should be done last (after the summing). Sorry for the lapse in logic. 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.