10-04-2024 05:01 AM
Hello everybody
I want to scan raster manner array
like
1 1
1 2
1 3
1 4
1 5
1 6
1 7
1 8
1 9
1 10
2 1
2 2
2 3
.
.
.
10 9
10 10
I tried using a for loop, but it wasn't enough. How do I fix it?
Solved! Go to Solution.
10-04-2024 05:24 AM
10-04-2024 06:39 AM
Build an array in the inner loop, use indexing on the inner loop output tunnel, use concatenation on the outer loop output tunnel.
Alternatively, you can bundle the numbers into a cluster in the inner loop, instead of bulding an array.
10-04-2024 11:08 AM - edited 10-04-2024 11:14 AM
@yeers wrote:
I want to scan raster manner array
like
1 1
1 2
1 3
1 4
1 5
1 6
1 7
1 8
1 9
1 10
2 1
2 2
2 3
.
.
.10 9
10 10
We don't know what output you want. Also counting in LabVIEW typically starts with zero, not 1. Here is one possible interpretation. Other possible outputs would be an array of points (cluster of x,y), a complex 1D array, a tab delimited table string? etc....
(I would remove the +1 because I don't think it should be there)
@yeers wrote:I tried using a for loop, but it wasn't enough. How do I fix it?
If you tried something, show us what you tried so we can point out what you did wrong. The only way to learn!
Also note that if this is real hardware, it would be reasonable to reverse all even rows (or columns) to limit long movements.