Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Converting a Text Symbol String to a Hex string

Solved!
Go to solution

Hello, 

 

I have a string constant which reads a character of 0 and I want to convert this to a hexadecimal string of 30.


I tried to achieve that by using the "Format Value" function. I believe the conversion needs to see the string as a text symbol rather than a number but I couldn't find this conversion option available in the String functions library.

 

ASCII_Conversion_Table.PNG

I only need to achieve this for one string value at a time. I was hoping that it would be achievable with the use of a function rather than using a LUT. 

 

Would appreciate any feedback you may have. 

 

Many Thanks

0 Kudos
Message 1 of 2
(2,720 Views)
Solution
Accepted by topic author neunited

String To Byte Array, Number To Hex String, Concatenate String


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
Message 2 of 2
(2,708 Views)