08-15-2005 02:26 AM
08-15-2005 02:56 AM
You really should learn how to find these things out for yourself.
In this case, you have 2 options:
You should start by right clicking the Index & Bundle Cluster Array and selecting Help to read the description for the function. You should also use the context help (ctrl+h) for more immediate help. These will explain what the function does.
The second thing to do is to build a quick example to see what happens. Simply wire 2 1D arrays into Index & Bundle Cluster Array and into Build Array and see the difference in the results to understand what each function does.
Another important thing is to try and understand the error. The errors almost always have a description which should help you understand. In this case, opening the context help, hovering over the broken wire and\or clicking the run button and selecting the error will show you the type of the wire and tell you what the target expects, so you can know how to fix it.
If, for example, it tells you that you have a 1D array on one side and a 2D array on the other, you need to add another dimension or remove 1 dimension (Build Array and Index Array).
These should help you find out how LV works and what the different functions do on your own.
In this case, you can see that Index & Bundle... takes the 1D arrays and creates an array where each element is a cluster built from the elements of the different arrays which have the same index.
Build Array simply builds an array.
08-15-2005 03:49 AM
08-15-2005 04:00 AM
To be honest, I never actually used Index & Bundle. It looks like it could be useful when using multiplot graphs. Basically, it does the same thing as auto-indexing the 2 arrays into a for loop, wiring the data into a bundle and auto-indexing the result out of the for loop, and almost certainly does this more efficiently..
Should you eat only apples and forget about oranges?
You shouldn't mix the two. You should use arrays where you need arrays and clusters where you need clusters. Forgetting about Build Array is not wise, because arrays are usually used much more than clusters. Arrays have the same data type and can be enlarged and clusters can hold different data types and are static. Each has advantages and disadvantages.
You should use Index & Bundle only when you need to build a cluster array in the same way that you should use the multiply function only when you want to multiply things. Each function has its use and its up to you to decide when to use what.
08-15-2005 10:48 AM
08-15-2005 12:06 PM