LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Is there a way to generate a 2d array, with user inputs x and y :

the result should be this:

xxxxxxxxxxxx
xxxxyyyyxxxx
xxxxyyyyxxxx
xxxxyyyyxxxx
xxxxxxxxxxxx
0 Kudos
Message 1 of 3
(2,600 Views)
This should do what your asking for.

Tim
0 Kudos
Message 2 of 3
(2,600 Views)
> the result should be this:
>
> xxxxxxxxxxxx
> xxxxyyyyxxxx
> xxxxyyyyxxxx
> xxxxyyyyxxxx
> xxxxxxxxxxxx

Several ways. You can make nested loops that just output x or y based
upon the location of the indices. Or you can use the initialize array
to do the y rectangle, then insert the rectangular x's to the left and
right, then insert the row of x's above and below.

Greg McKaskle
0 Kudos
Message 3 of 3
(2,600 Views)