02-15-2006 01:31 PM
02-15-2006 02:24 PM
Hi Kaspar,
The Hexadecimal String to Number function should be used whenever you have a string that contains the actual ASCII characters that represent numbers, i.e. an ASCII string of "123" would be turned into the number 123. What you're doing is a little different...your string actually contains characters represented as hex values (you have the string constant set to "Hex Display"). In order to get the VI to do what you need, you should use the Typecast function to cast the Hex string to a U8, then you can use the Number to Boolean Array function to turn that U8 into an array of Booleans...you may need to reverse that array depending on where you want the LSB in the array.
Also, as a suggestion, in your VI you are using eight separate Index Array functions to pull out all the scalar Boolean values...you can actually use a single Index Array function, drag it down to have 8 'index' inputs, and by default it will output elements 0 through 7 in its resulting 8 outputs.
Hope this helps,
-D
02-15-2006 02:53 PM
Hello,
Thanks for the info. I have found the type cast function and I am do not know how to specify the type input. How do I do that?
02-15-2006 03:04 PM
Just wire a U8 constant to it. Drop a constant from the Numeric palette, right-click it and choose Representation, and change the representation from I32 to U8.
Hope this helps,
-D
02-15-2006 03:20 PM
02-15-2006 03:29 PM
Hello,
Thanks for the help with the decoder problem that I had!
The people who are in this forum are GREAT!