12-07-2016 01:28 PM
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.
Solved! Go to Solution.
12-07-2016 02:01 PM
Please, post in you native language. Google Translate will help us to understand what you wish to accomplish.
12-08-2016 02:03 PM
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.
12-08-2016 02:26 PM
12-08-2016 04:18 PM
Thank you GerdW 🙂
12-08-2016 04:41 PM
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.
12-09-2016 01:57 AM - edited 12-09-2016 01:59 AM
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…
12-09-2016 12:59 PM
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.