Chitika

Tuesday, July 7, 2015

Conversion of Hexdecimal String to Decimal Values in Labview

It is sometimes required to convert a hexa decimal string, received over serial port or through some other communication link etc., to decimal values either for further processing or for display of data.
The following Labview code converts a string containing hexa decimal data (also displayed in hexa decimal format in the string) to decimal format.
 This is a simple code and contains following key VIs and functions:
  • Hexadecimal String (with Hex display option selected from the front panel )
  • String to Byte Array Conversion Function
  • Index Array Function
  • Join Numbers Function
A screenshot of front panel and block diagram of this Labview program is shown in figure above.It is a simple but quite useful Labview code.

No comments:

Post a Comment