LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to extract 10 elements and rotate them

I'm new in LabVIEW.
I am getting data from a wavemeter and I already did the code to handle data from it such that the frequencies are converted into numbers. All this is placed in a while loop and by using auto indexing data is stored in an array. My problem is now that I want only 10 elements in my array and the elements must rotate as new numbers enter the array.
It is easy to make an 10 element array in a for loop, but that is not what I am supposed to do. I need 10 elements but they have to change. Also I would like to see the elements in the frontpanel while the VI is running, how do I do that?

0 Kudos
Message 1 of 5
(2,571 Views)

Hi DTP,

 

try something like this:

check.png

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 5
(2,542 Views)

Or you could just use the Data Queue PtByPt and it does it all for you.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 3 of 5
(2,535 Views)

Thank you so much! Should I then wire my numbers where the random number is wired? 

0 Kudos
Message 4 of 5
(2,532 Views)

Yes, sure! (To both of you. :D)

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 5 of 5
(2,529 Views)