r/LabVIEW • • Oct 15 '25

SOLVED Need help with putting repeating values in my array!

Post image

Hi guys!

I hope this post is OK, this is my first time posting on this sub!

I'm studying LabVIEW in uni and I have to generate a sound following a partition (the array on the right side of the front panel). To do this, I have to fill an array with 22050 times the first value of the partition, then 22050 times the second value of the partition etc.
However, the values of the partition just repeat themselves over and over, instead of repeating one at a time...

Does anyone know how to make the values repeat themselves before passing on to the next value ?
Basically I want 22050 * 2, 22050 * 2, 22050 * 3 etc.

Thank you so much in advance !

EDIT : It worked! Thank you all for your help! I know the code is quite confusing, I've just started learning LabVIEW, so I'm thankful for the help and the resources!

5 Upvotes

9 comments sorted by

View all comments

Show parent comment

1

u/ArcturusAltair Oct 15 '25

I'm confused by what I am doing too unfortunately!

I think I am the one missing something. It works now, but I'll check and see if multiplying the partition array works too...

I need to have 22050 points for each value in the partition array to get the waveform I'm after!

No pseudo-coding at all... The teacher just gave us a basic program to modify, so I jumped right in. I'll keep pseudo-coding in mind for the next time!

1

u/wasthatitthen Oct 15 '25

If you want 22050 points for each partition point then you need to do things differently.

Having a code as a start point can help, but it does help to think first and edit the code later.