Showing results for 
Search instead for 
Did you mean: 

Hex string changes value after concentrate string operation

Go to solution

Hello All,

I have a wired problem.

In order to control my servo I need to send an HEX string and its checksum

The checksum calculation is Correct, but after concentrating the two string, the checksum Hex Value is changed. 

I am at a loss here.

How can this be explained and avoided?

Please see attached VI saved to labview 18.

Thanks very much


0 Kudos
Message 1 of 4

No change at all. The concatenated string and checksum is displayed in Hex, while the checksum is displayed in Normal format.

So, the checksum E3 corresponds to hex format 4533 as expected.

LV 7.1, 2011, 2017, 2019
0 Kudos
Message 2 of 4
Accepted by topic author GilMaor

For any string you are not using the "normal" display on, I HIGHLY recommend you turn on the "Display Style" (right-click, Visible Items->Display Style).  It will become obvious that your Checksum indicator is in normal display while all of the others are in hex.


With that said, I am fairly certain that your checksum should not be the ASCII formatting of the checksum.  Use a Type Cast or Flatten To String to keep the checksum in a hex format like the rest of your data.


Slightly off topic, but there is a Add Array Elements that will eliminate the need for your FOR loop.

There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Download All
0 Kudos
Message 3 of 4


That solved the issue!

0 Kudos
Message 4 of 4