From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Hex string changes value after concentrate string operation

Solved!
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

Gil,

0 Kudos
Message 1 of 4
(954 Views)

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.

Paolo
-------------------
LV 7.1, 2011, 2017, 2019, 2021
0 Kudos
Message 2 of 4
(928 Views)
Solution
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.


GCentral
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
(919 Views)

Thanks!

That solved the issue!

0 Kudos
Message 4 of 4
(913 Views)