LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

I want to make raster scan array

Solved!
Go to solution

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?

 

0 Kudos
Message 1 of 4
(389 Views)

yeers_0-1728037435611.png

 

0 Kudos
Message 2 of 4
(376 Views)

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.

0 Kudos
Message 3 of 4
(348 Views)
Solution
Accepted by topic author yeers

@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)

 

altenbach_0-1728057863281.png

 

 


@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.

0 Kudos
Message 4 of 4
(310 Views)