Quantcast
Channel: Instrument Control (GPIB, Serial, VISA, IVI) topics
Viewing all articles
Browse latest Browse all 5665

Converting a Text Symbol String to a Hex string

$
0
0

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


Viewing all articles
Browse latest Browse all 5665

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>