12-13-2011 04:13 PM
I am trying to convert a string to a numeric array ... the first # in the string gets cut off, the last three seem to come through.
This may be fairly simple, but I really haven't worked with the string functions all that much.
Help would be appreciated.
Thanks,
12-13-2011 04:19 PM
Hi
You can use "format into string"function from the string function pallet
12-13-2011 04:40 PM
12-13-2011 04:48 PM
oooooooooh
I am so sorry, I did not notice the array" in ur post, because I do not have labview right now, I am very sorry for my last silly mistake
12-13-2011 05:02 PM
try this ...
(Of course your numbers seem to be fixed with with leading spaces, so it would be also simple to scan using a fixed width)
12-13-2011 05:08 PM - edited 12-13-2011 05:11 PM
Wow I sure did misinterpret that one!
I guess I paid too much attention to the subject line.
If you remove the first and last byte from the string using string subset then the read spreadsheet string would probably have worked.
12-13-2011 05:17 PM
@Steve Chandler wrote:
If you remove the first and last byte from the string using string subset then the read spreadsheet string would probably have worked.
Yup.
12-13-2011 05:24 PM - edited 12-13-2011 05:26 PM
Yet another way...
(since you seem to be dealing with integers, I seleted a more logical representation here. modify as needed)
12-13-2011 05:28 PM
All My Regexes Live in Texas....
Probably don't even need the \h & \v, I just add them as a habit.
12-13-2011 08:09 PM
Hey guys I appreciate the posts. I'll try these examples out and see what works with the USB driver.
Great feedback.