02-23-2006 07:14 PM - edited 02-23-2006 07:14 PM
Message Edited by Andy F. on 02-23-2006 07:15 PM
Message Edited by Andy F. on 02-23-2006 07:16 PM
02-27-2006 07:37 PM
@Andy F. wrote:
Hey NewMachine,
I believe that you are encountering the difference between hex code display and normal display modes. The table doesn't allow you to change the display mode to hex, so we need to do a little translating. Here's a small example that basically makes the normal display mode display what you see when you select the hex display. Follow me? It basically takes your string (hex display), translates it into a byte array, then converts the hexidecimal number into a string. The string output is in normal display and matches the input string. The select statement at the bottom is just for formatting purposes.
Hope this helps!
Andy F.
Message Edited by Andy F. on 02-23-2006 07:15 PM
Message Edited by Andy F. on 02-23-2006 07:16 PM
02-28-2006 01:43 PM
03-02-2006 02:03 PM
@Andy F. wrote:
NewMachine,
That bit of code that I posted fits well either right before your table, or even better right after the Command Line Input string control (to prevent having to index through the array and convert each element). The two constant that is wired there is just to specificy the width of the string that is being converted. You shouldn't have any problems using this with any length of hex. I envisioned this to be used as its own little module or subVI, so I think creating a new loop would be the way to go. I would recommend implementing this bit of code in a new VI and testing it out, and maybe creating a subVI for use in your program. Let me know if you have any other questions!
Thanks,
Andy F.
03-03-2006 04:22 PM