LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Generating field

Solved!
Go to solution

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.

0 Kudos
Message 1 of 8
(3,365 Views)

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


"Should be" isn't "Is" -Jay
0 Kudos
Message 2 of 8
(3,353 Views)

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.

0 Kudos
Message 3 of 8
(3,294 Views)
Solution
Accepted by topic author Mlha

Hi Miha,

 

when I trust Google you need something like this:

check.png

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 4 of 8
(3,284 Views)

Thank you GerdW 🙂

0 Kudos
Message 5 of 8
(3,275 Views)

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.

 

0 Kudos
Message 6 of 8
(3,270 Views)

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


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 7 of 8
(3,249 Views)

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.

 

Thank you for your advice.

0 Kudos
Message 8 of 8
(3,221 Views)