09-10-2015 09:34 AM - edited 09-10-2015 09:59 AM
Hello,
Clearly at this point I know that Item Names doesnt take 3d Array but I tried tto find a way around it by concatenate my 2D array out of the for loop instead of inexing it. but that didnt work, I might need help!
Probelm: I am processing a 2d array of data that end up being 3D array when I index out the for loop. But as it gets out of the for loop the size of the array changes from 290 x 9 to 1154 x 10 because of the amount of iteration of the foor loop. I tried to reshape the indexed 3D array to the original array size of the 2D array so I can display my data in the multicolumn listbox but that didnt work out well I ended with spaces in my data and misplaced data points. The reason I want it in 3D is because i want to be able to select the different index pages and concatenate em in the listbox. After 290 data point the rest is filled with zeros until 1154, therefore leaving a huge empty spot in my listbox. My goal is to resahpe the 3d array from 1154 x10 to 290 x 9 and concatenate it by selecting my pages and ahving no zeros and misplaced data points
Please keep in mind this is the way i want to code the Vi, Im sure there is a simpler way.
adde missisng vi
Please disregard the wait.Vi in the second loop. and other unnecesary stuff.
09-10-2015 10:39 AM
Sounds a bit like you're trying to work with ragged arrays which LabVIEW doesn't support.
Rather than creating a 3-D array, try working with a 1-D array of clusters of 2-D arrays.
09-14-2015 02:49 PM
Taki is probably right. I think this nugget will help you understand how to get around this behavior of LabVIEW where each dimension must be the same size as the others when indexing on one.
http://forums.ni.com/t5/LabVIEW/Darren-s-Occasional-Nugget-05-09-2012/m-p/1984521
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord