02-07-2011 07:49 AM
is it possible in LabVIew to initialize a two-dimentional array.
What I mean by that is that..- like in the "initialize array" command we can initialize one-dimension of the array, is it possible both the dimensions.
Well, what I'm trying to do is to segregate an output string into certain components whom I hope to display in a two-dimensional array. I want to determine both the dimensions of the array by counting the number of variables in the output string.
I figured out how to count the length of the array's two dimensions, but don't know how to initialize both the dimensions of the array.
Any help would be much appreciated.
Thanks.
02-07-2011 08:01 AM
"Initialize Array" is resizeable. Click and drag the index terminal.
02-07-2011 08:34 AM
thanks!! that worked just fine.
One more thing, now how do I display a part of the output string that I've identified and distinguished from the rest of the string at a particular location in the two-dimensional array.???
thanks in advance.
cheers
Rajat
02-07-2011 08:48 AM
ReplaceArraySubset ist your friend!
02-07-2011 08:51 AM
kudos are granted
02-08-2011 03:14 AM
I'm having trouble using the Replace-Array-Subset sub-VI. I want to use this commmand inside 2 for-loops (one for-loop is inside the other one).
But when I try to do this it gives me an error (see attachment). When I connect the same sub-VI in only one for-loop or outside the for-loop(s) i get no error.
What should I do now?? Which other command can I use???
02-08-2011 03:16 AM
02-08-2011 03:19 AM
i can not attach the screenshot, because the .jpg file is larger than the size permitted on this forum.
02-08-2011 03:20 AM
How do I turn off the auto-indexing in the for-loop????
02-08-2011 03:23 AM
the error I'm getting is:
"You have connected a Scalar type to an array of that type. the type of source is string. the type of sink is 1-D array of double. (64-bit real (15 digit precision))"