09-25-2007 12:07 AM
09-25-2007 12:20 AM - edited 09-25-2007 12:20 AM
It is not clear what you want.
If you typecast a DBL (floating point) for example, you'll get 8 bytes, but it seems you only want a single byte. (0..255)
If you say "hexadecimal values", you are probably dealing with integers set to hex display. Are you?
Are you trying to cast to a string (set to hex display)? Your wording "to ASCII" is misleading, since ASCII does not describe the full 8 bit set you seem to want. (http://en.wikipedia.org/wiki/ASCII). Or do you want to FORMAT your number as a hex formatted ascii string (2 bytes/8bits, exclusively containing the characters 0..F).
Most likely, converting your number to U8, then typecast to a string would be one possible solution. (if I understand your problem correctly).
Please attach your VI so we can see what kind of data you have and what output you want. Thanks! 🙂
Message Edited by altenbach on 09-24-2007 10:25 PM