12-08-2008 01:36 PM
Hello ,
I have a normal string 01 00 02 00 01 00 00 00 this has to go to already made function as hex value i.e 0100 0200 0100 0000 how to achieve this.
srini
12-08-2008 01:56 PM
12-08-2008 02:01 PM
12-08-2008 02:15 PM - edited 12-08-2008 02:16 PM
Try this:
(Mak sure you use the correct datatypes. What is your LabVIEW version?)
12-08-2008 02:17 PM
http://forums.ni.com/ni/board/message?board.id=170&thread.id=373185 may be of some help

12-08-2008 02:34 PM - edited 12-08-2008 02:36 PM
srinivas wrote:
sorry i didnt get you, u want me to convert string in number and then back number to Hexstring. if i do that i get only a single value
Then you'll have to be a little clearer in what you want. What do you expect the results to be? You said you wanted a hex value. Now you are saying you want a string?
12-08-2008 02:44 PM
Ravens Fan wrote:Then you'll have to be a little clearer in what you want. What do you expect the results to be? You said you wanted a hex value. Now you are saying you want a string?
The problem are the "spaces" in the input string, else we could just parse it as U64 (as you possibly proposed).
That's why we have to use "spreadsheet string to array" with space as delimiter. If we always have exactly 8 bytes, you can also typecast the resulting byte array to U64. Modify as needed.
12-08-2008 06:39 PM
Hello altenbach.
i tried but i getting first byte only see the attached file, i am using labview 8.5
12-08-2008 07:44 PM
12-08-2008 07:47 PM - edited 12-08-2008 07:48 PM
Simply delete the "space" constant. Your delimiter between the values is "tab", not "space". 🙂
(tab is the default for this function, so you don't need to wire it)