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,956 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,933 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,927 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,922 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,909 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?



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,903 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
(3,869 Views)

Thank you, you really helped me.

 

Regards

0 Kudos
Message 8 of 9
(3,835 Views)

Prevent diagram clutter by using array operations instead. 😄

 

 

Download All
Message 9 of 9
(3,830 Views)