# LabVIEW

cancel
Showing results for
Did you mean:

Solved!
Go to solution

## Generating field

Hello,

I need to consult with generating field. I have one field of approximately 150, and the values of this field are only 1 and 0 at random.

And I needed to gradually take values from the array (1 and 0) when the value of the field is equal to 1 must create 1,000 value numbers 10 and if the value of the field is equal to 0 values have to create 1,000 number 0. So at the beginning I have 150 values 1 and 0, and the end I will have an array of size 150 000 values of the numbers 10 and 0 on the Y axis and X axis I have the values 0 to 149,999th

Can anyone advise me with generating this field?

Thank you for answer.

Message 1 of 8
(1,119 Views)

## Re: Generating field

Please, post in you native language.  Google Translate will help us to understand what you wish to accomplish.

Message 2 of 8
(1,107 Views)

## Re: Generating field

Potřebuji poradit s generovaním pole. Momentálně mám jedno které má 156 hodnot, kde jsou jenom jedničky a nuly. A já potřebuji postupně brát hodnoty z toho pole a když to bude hodnota 0 tak vytvořit pole které bude mít 1600 hodnot čísla 0 a když to bude číslo 1 tak vytvořit pole které bude mít 1600 hodnot čísla 10

Takže když na začátku mám pole o 156 hodnotách, tak na konci budu mít pole se 156*1600 hodnot (cca 250000)

Thank you for help.

Message 3 of 8
(1,048 Views)
Highlighted
Solution
Accepted by Mlha

## Re: Generating field

Hi Miha,

when I trust Google you need something like this:

Best regards,
GerdW
CLAD expired, using LV2011SP1 + LV2017 (+LV2019 sometimes) on Win7+cRIO
Kudos are welcome

Message 4 of 8
(1,038 Views)

## Re: Generating field

Thank you GerdW :-)

Message 5 of 8
(1,029 Views)

## Re: Generating field

Hello, can you help me with another problem?

Now i have two array, one with 0 a 10, and secend with index 0 1 2 .. size(x*y)

And i want to create a square waveform of these values.

Message 6 of 8
(1,024 Views)

## Re: Generating field

Hi Miha,

just wire the "x*y" array to a waveform graph!

Have you even tried to wire up things?

As you are asking very basic LabVEIW stuff: did you take those FREE ONLINE resources offered by NI to let you LEARN LabVIEW?

Btw. your second array will have numbers from 0 to x*y-1

Best regards,
GerdW
CLAD expired, using LV2011SP1 + LV2017 (+LV2019 sometimes) on Win7+cRIO
Kudos are welcome

Message 7 of 8
(1,003 Views)

## Re: Generating field

I'm sorry GerdW.

I have not tried wire this array, but when I wired my first array to a graph, that it did not work.