01-17-2017 12:22 AM - edited 01-17-2017 12:35 AM
Hi,
There are two arrays and I want to get all possible combinations
array 1= a , b, c, d...
array 2=x ,y ,z.....
array 3= a x
a y
a z
b x
b y
..........
Solved! Go to Solution.
01-17-2017 01:43 AM
Hi rojartom,
when all LabVIEW beginners would take the free online resources offered by NI they surely would know how to use the autoindexing of arrays in loops:
With recent LabVIEW versions this would be even easier as you would have access to "concatenating output tunnels" - but it seems you're stuck with LV8.2…
03-02-2020 09:54 AM
Hello,
I have question, it is possible to modify this solution to this kind of problem. I need combination of 2 arrays each with 2 columns. So the elements of each row of array will stay together.
Thank you in advance.
DV
03-02-2020 09:59 AM
Have you tried to apply your 2-D arrays to the example shown above for 1-D arrays?
You'll find when you auto-index a 1-D array, it takes it 1 element at a time. When you auto-index a 2-D array, it takes it 1 row at at time.
You may need to change the way the array is built inside the inner most For Loop to Concatenate mode. But if you play around and experiment, I think you'll find the solution you want is not that much different than the one already presented!
03-02-2020 01:12 PM
Thank you, I tried solution you suggested but I get different format of solution.
03-02-2020 01:31 PM - edited 03-02-2020 01:34 PM
03-02-2020 03:16 PM
Gerd is correct.
And if you go back to my message, you'll see I said "You may need to change the way the array is built inside the inner most For Loop to Concatenate mode" 😉
03-02-2020 10:45 PM
03-03-2020 03:10 AM
Thank you very much for your help. That is what I have looked for.