LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

The problem with the strings Convert each other

Hello all,
 
  Could you help me to solve the following problem using LV7.1? Thank in advance.
 
  How can I convert a string of "hexadecimal value" with Normal display style to other string of " the same hexadecimal value" with Hex display style?
 
Best regards,
Evan_Lv  
0 Kudos
Message 1 of 3
(2,684 Views)
Hi Evan,

look at the attachment Smiley Wink

At the moment there is no error checking (any characters other than (0-9|A-F|a-f) will give an error; only even number of chars is converted). You can do the error checking
as an exercise on your own!

Message Edited by GerdW on 08-21-2007 09:08 AM

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 3
(2,671 Views)
Here's a more compact alternative. Same result and same precautions. (It acts a little bit differently if you string has e.g. spaces between hex paris.)
 

Message Edited by altenbach on 08-21-2007 12:56 AM

0 Kudos
Message 3 of 3
(2,664 Views)