How to display correctly the code tank?

Hi all

I'm trying to convert the numebr decimal (0 to 127) char (ASCII code). I found the code here http://digital.ni.com/public.nsf/allkb/894CF5FE064971BF8625758400014993

I try with several numbers, but it is not indicated the same character as indicated on http://digital.ni.com/public.nsf/allkb/475C4E4F3A638AA58625795F007EC531?OpenDocument

For example, I tried 104, it shows '@', but it should be "h". I tried 33, it shows "@"but it should be!" (without quotes). I wonder what is the right way to do the conversion, or is the wrong way to display it?

Furthermore, if I have a table of decimal numbers, in addition to the use of the lines and code as above for all convert them to ASCII, one by one, is that any way faster to perform the conversion? Thank you.

Use the split of the digital number primitive > pallet of data manipulation.  If your number is a signed integer, you must be careful about the sign bit and negative values, although those who are not relevant for ASCII characters.

Lynn

Tags: NI Software

Similar Questions

Maybe you are looking for