06-19-2012 03:40 PM
Hi,
This is a basic question without a doubt but it is giving me an inordinate amount of trouble. I want to capture a user input floating point double via a Numeric Control (Azimuth & Elevation), take that double and pass it to the Number to Hexidecimal String Function specifying a width of 16. These strings are then concatenated together, along with a hexidecimal command string (0005 0000) and sent on their merry way as a UDP packet. If I just use string constants displayed as hexidecimal everything works great. When I attempt to use the code below, if I input 0.0, I would expect a hexidecimal string of 16 zeros. Instread I get a recurring pattern of 30, (i.e., 3030 3030 ...) the ASCII for 0 in hexidecimal.
Any assitance would be greatly appreciated.
Thanks,
Bill
Solved! Go to Solution.
06-19-2012 03:43 PM - edited 06-19-2012 03:44 PM
06-19-2012 03:43 PM
Simply typecast the numbers to a string. You want the actual binary values in a string fomat, not the ASCII values.
06-19-2012 03:58 PM
Thanks! Works great