05-18-2006 05:40 PM - edited 05-18-2006 05:40 PM
Hi!
I have a string that i want to send trough serial to a device. The thing is, that before i send it, i have to make the LRC check. So, I have to sum the hex string parts. How can I do this?
For example, I have a string control and I write "#01SVT<BL>+098,0<CR><LF>". To make the LRC check i have to make the sum in hexadecimal, so I have to do this:
23+30+31+53+56+54+20+2B+30+39+38+2C+30 = 2C9
Message Edited by Luigi007 on 05-18-2006 05:46 PM
05-18-2006 06:07 PM
See the zip file in this thread.
http://forums.ni.com/ni/board/message?board.id=170&message.id=142841&requireLogin=False
There is a checksum vi inside the llb file in this thread that adds the array elements.
05-18-2006 06:24 PM - edited 05-18-2006 06:24 PM
Message Edited by daveTW on 05-19-2006 01:25 AM
05-19-2006 08:28 AM
02-27-2024 12:06 PM
Hello, would you have a picture in False case, too?
02-27-2024 01:46 PM
Hi JC,
@JC1111 wrote:
Hello, would you have a picture in False case, too?
You really want another image on an 18 year old example VI? Really?
Btw. it's a "default if unwired" tunnel in the case structure, so the other case is EMPTY...
02-27-2024 06:32 PM
Thanks!