Converting Hexadeicmal String from Normal Display to Hex Display

Updated Jan 8, 2019

Reported In

Software

  • LabVIEW

Issue Details

I want to convert hexadecimal string decoded as Normal Display in the string control into hexadecimal string of Hex Display. How can I achieve this?

Solution

Use Hexadecimal String To Number and Type Cast function to convert hexadecimal string from Normal Display to Hex Display.



Note : This image is a LabVIEW snippet, which includes LabVIEW code that you can reuse in your project. To use a snippet, right-click the image, save it to your computer, and drag the File onto your LabVIEW diagram.

Additional Information

Hexadecimal String to Number function converts hexadecimal string into U32 data type. If hexadecimal number is less than 32 bit size, Type Cast function fills the remaining digit with zeroes preceding the hexadecimal value.