03-19-2009 08:14 AM
I am communicating with a digital device. I can send it commands, and receive ascii as an output. In many instances, the data I receive is in packets, which I decode. When I combine my 8 bits with the build array function, I get a U32 integer. Currently I am converting that to a U8 integer, and displaying the result as a program rev. We would like to display it as an ascii value, and I have been unable to figure out how to do it. I am including a screen shot of where I am trying to make the conversion. Thank you!
Solved! Go to Solution.
03-19-2009 08:22 AM
Hi SciManStev,
what do you mean with ascii value? if you need a string, then you can use the "type cast" function.
Mike
03-19-2009 08:24 AM - edited 03-19-2009 08:28 AM
Please just post your image as a .png file or .jpg file attached your message. Don't embed it in a Word Document.
What you want is the function Number to Decimal String located on the String >> String/Number conversion palette.
EDIT: The function you used (Format into String) will work also if you get rid of the "%%" format constant that you have or replaced it with %d
03-19-2009 08:33 AM
The string to number conversion does not change the number. It just changes it from a number to a string. For example the U8 result I get is 31 hex. This is a "1" in ascii.
I have included a jpeg screen shot.
03-19-2009 08:39 AM
11-12-2013 09:47 PM
Thanks bro!