07-23-2012 07:43 AM
Hello everyone,
In this topic http://forums.ni.com/t5/LabVIEW/Find-position/td-p/2059690 I have create a 1D array of string.
But no I would like convert this 1D array of string to 2D array of string.
I have try a for loop with inside a Build Array but in output it's a 1D ...
Do you have any idea?
Thanks
Solved! Go to Solution.
07-23-2012 07:50 AM
I have try too a same idea of "read from spreadheet file.vi" because for my 2D array I would like \t for delimiter.
07-23-2012 08:38 AM
@kourte wrote:
Hello everyone,
In this topic http://forums.ni.com/t5/LabVIEW/Find-position/td-p/2059690 I have create a 1D array of string.
But no I would like convert this 1D array of string to 2D array of string.
I have try a for loop with inside a Build Array but in output it's a 1D ...
Do you have any idea?
Thanks
Already answered in your original post.
For others: Build Array.
I have try too a same idea of "read from spreadheet file.vi" because for my 2D array I would like \t for delimiter.
I have no idea what you are saying here. Is this a question, or a follow-up comment?
07-23-2012 08:40 AM - edited 07-23-2012 08:41 AM
Hi,
You can use Build Array (array pallete) to convert the 1D array to 2-D. You'll have to remember to wire an array constant (string in this case) to the second input of the Build Array VI.
-CC
[Edit: sorry for the repeated info here - didn't see Smercurio's post until after I'd written mine]
07-23-2012 08:53 AM
@ChrissyC87 wrote:
You can use Build Array (array pallete) to convert the 1D array to 2-D. You'll have to remember to wire an array constant (string in this case) to the second input of the Build Array VI.
No you don't. You can resize the node to 1 input.
07-23-2012 08:56 AM
@crossrulz wrote:
No you don't. You can resize the node to 1 input.
Every day is a school day!
-CC
07-23-2012 09:03 AM
Hye everybody,
thanks for your answers but I would like a tab for delimiter with the 2D array.
07-23-2012 09:07 AM
Just to clearify with an example:
You currently have:
"a\tb\tc","d\te\tf"
and you want to convert to:
"a","b","c"
"d","e","f"
???
07-23-2012 09:34 AM
Hye,
yes.
I have for example this
06/11/2012\tCheckout\t...
and I would like the 2D array as in the picture
07-23-2012 09:38 AM