01-22-2011 10:38 AM
I have a string:
(no quotes)
"Aout,B,Cin,D,Etest".
I want to convert this into a 1D array of
Aout
B
Cin
D
Etest
I could not find a VI that does that. Best way to do this ?
Solved! Go to Solution.
01-22-2011 10:40 AM
The string to array function will do that.
Use a comma as the delimimter and a 1d-array as the data-type.
Ton
01-22-2011 11:01 AM
Thanks for the quick response.
I tried using the Spreadsheet string to array function, with the comma as the delimiter and %s as the format (as the documentation says). The input numeric double array (2D) is unwired. However, the output is still a double (orange) and wiring it to the search 1D array VI expecting a string array input produces a bad wire.
Am I using the wrong VI ?
01-22-2011 11:34 AM
Simply wire an empty 1D string array to the 'array type input'.
01-22-2011 11:45 AM
Had to wire a constant string array to the array type. Works now.
Thanks.
01-22-2011 12:43 PM
Then please mark Dennis' message as the solution to your question instead of your own message since he was the one who gave you the solution.
You can unmark yours by going to the option menu to the upper right of your message.
07-26-2014 12:25 PM
Please start a new thread rather than appending to a three year old thread which is marked as Solved.
When you do so, please be more specific. Your brief statement does not tell us much about the string, how many segments to split, or anythng else. You did not actually ask a question.
Lynn
07-26-2014 06:09 PM - edited 07-26-2014 06:14 PM
You have to remember that this comes from a generation where they think that "That awkward feeling when you realize you can't write a complete sentence." is a complete sentence.
07-27-2014 02:51 PM
9 posts all to old threads, no value added, weird link for JAVA help in the signature...screams SPAM to me.
07-27-2014 02:54 PM
@crossrulz wrote:
9 posts all to old threads, no value added, weird link for JAVA help in the signature...screams SPAM to me.
I didn't see the little link at the bottom. Shows how effective the SPAM was. I'm surprised that there wasn't ten other old threads that resurfaced also...