08-03-2021 11:01 AM
Hello,
i search the siplest way to convert array with dec values (ascii coded) in a string.
For example Array with 50 46 49 to string 2.1
Thanks
Sepp
Solved! Go to Solution.
08-03-2021 11:05 AM
@sepp70 wrote:
Hello,
i search the siplest way to convert array with dec values (ascii coded) in a string.
For example Array with 50 46 49 to string 2.1
Thanks
Sepp
Talking about ASCII or hex conversions is always confusing. As a result, I'm not quite sure what you are trying to do. Don't those ASCII values already correspond to the string you want to convert to?
08-03-2021 11:14 AM
Hi Bill,
content of array is for example 50 46 49 and i will convert in string "2.1"
Input array with dec values, output correspond ascii characters in a string.
Regards Sepp
08-03-2021 11:23 AM
08-03-2021 11:23 AM
@sepp70 wrote:
Hi Bill,
content of array is for example 50 46 49 and i will convert in string "2.1"
Input array with dec values, output correspond ascii characters in a string.
Regards Sepp
I get it now; I should've gotten it the first time, sorry. Just use the "Byte Array to String" function found in the Numeric --> Conversion palette.
08-03-2021 11:24 AM
wiebe@CARYA wrote:
I think he meant he has an array of u8. Talking about these kinds of conversions are always tricky to me.
08-03-2021 11:29 AM
@billko wrote:Talking about these kinds of conversions are always tricky to me.
Agreed.
If the input is an array of numerics, there's no point (or difference) in mentioning that it's decimal encoded.
If the input is an array of decimal encoded strings, it's quite different.
It would be better to have a VI with input\output specified.