08-13-2007 04:26 PM
08-13-2007 06:48 PM
@rlg50 wrote:
I have been trying to use the replace array subset to insert the data from a 1-d array while creating a 2-d array by combining the data inserted with a string array that is created. The second auto indexed data is writing over the first array data that was written. I know this has something to do with autoindexing or adding another loop, but I can not get it to work.
Your description is way too confusing for me and your images are way oversized.
"Replace array subset" cannot be used to "Create" (sic) a 2D array. It will not change the dimension or size, but just replace certain elements with a new value.
Please reduce your problem to a small VI that shows the problem. Add a few arrays as diagram constants and tell us what kind of output you want.
08-14-2007 10:43 AM


08-17-2007 09:12 AM
08-17-2007 09:25 AM
08-17-2007 09:36 AM
08-17-2007 09:36 AM - edited 08-17-2007 09:36 AM
Message Edited by B O B on 08-17-2007 09:43 AM
08-17-2007 09:41 AM
Right click on the build array function. It will have a menu choice "concatenate inputs". If this is unchecked, it builds arrays by adding dimensions. Two 1-D arrays become a 2-D array. (array 1 in column 1, array 2 in column 2) Two 2-D arrays become a 3-D array. (Array 1 in sheet 1, array 2 in sheet 2). If it is checked, it concatenates the arrays so the finished array has the same number of dimensions, it just grows in one direction. Two 1-D arrays becomes a longer 1-D array.
A 3-D array in labview is just like a 3-D array in any language. Rows, then columns, then "sheets". You can have some ridiculous number of dimensions (at least 20) to the point you can't visualize them and they would be really difficult to work with.
08-17-2007 10:05 AM
08-17-2007 10:07 AM