From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, 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: 

Aditionner string hexadecimal

Bonjour,

 

Je suis débutant dans Labview.

Comment est-ce que pourrais-je additionner à une valeur fixe(hexa) 2 valeur hexadecimal par 2 bytes?

exemple: je dois additioner F424 à 277 donc F4 + 24 + 277.

277 est une constante string.

 

Merci.

0 Kudos
Message 1 of 9
(3,069 Views)

Welcome Aleksandar,

 

could you please rephrase your question in English as this is the English forum?

 

There is a sub-forum just for French (speaking) people

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 9
(3,046 Views)

Sorry,

 

I need to add a hexadecimal string. How can i add 3 different hexadecimal string?

Exemple: i want to do   277+F4+24 and i need a answer in string.

 

Thanks

0 Kudos
Message 3 of 9
(3,040 Views)

Hi Aleksandar,

 

when you want to concatenate strings you should use the ConcatenateStrings function…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 9
(3,035 Views)

Use "Hexidecimal string to number" for each of the numbers you need to add.

 

Add them together.

 

Use "Number to Hexidecimal string" to get answer back into string.

 

0 Kudos
Message 5 of 9
(3,022 Views)

@AleksandarG wrote:

Sorry,

 

I need to add a hexadecimal string. How can i add 3 different hexadecimal string?

Exemple: i want to do   277+F4+24 and i need a answer in string.

 

Thanks


What exactly do you mean by Add?  What would you expect as the result from your example?


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
0 Kudos
Message 6 of 9
(3,016 Views)

Hi Aleksandar,

 

the solution from deceased should work fine.

 

I made you a little example VI with the functions deceased described.

 

Regards,

 

Stefan

0 Kudos
Message 7 of 9
(2,982 Views)

Thank you, you really helped me.

 

Regards

0 Kudos
Message 8 of 9
(2,948 Views)

Prevent diagram clutter by using array operations instead. 😄

 

 

Download All
Message 9 of 9
(2,943 Views)