LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Convert "hex string" to hex

Thanks Altenbach.  I did realize that my code is not scaleable, and the 'ABC' was a carryover from an example that I had started from.  The output from the sensor that I'm reading will always have 2 characters, therefore scalability was not a concern.  

 

Regarding your example, how are you converting the characters to binary?  Does that take place via the 'String to Byte Array'?  

 

 

0 Kudos
Message 11 of 12
(265 Views)

jdeters79 wrote:

Regarding your example, how are you converting the characters to binary?  Does that take place via the 'String to Byte Array'?  


All I did was making a lookup table, then indexing into it. Every possible result is precomputed using standard LabVIEW tools, then turning the result into a string array diagram constant.

0 Kudos
Message 12 of 12
(249 Views)