LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Same index, different array indicators. How?

Solved!
Go to solution

Hi everybody 🙂

 

I am trying to create a VI that emulates a spectrum analyzer. At the very end of some intermediate steps I've got 3 arrays containing frequency, amplitude and phase corresponding to each FFT sample. After I run the VI I'd like to explore each element of these arrays in order to read the actual values for the i-th sample (e.g. frequency, amplitude and phase of the third component).

 

At this moment I'm using 3 independent array indicators (as shown in the attached screenshot), however I'd like the three indices to be synced, so that I don't have to type three times the same value whenever I want to explore a sample. Is there a way to do that?

I am aware of the "Index Array" block, but once the execution ends I can no longer go through all the samples, in fact when the input signal is noisy the values are unstable and it's almost impossibile to read them in real time (running the programm continuously).

 

 Thanks a lot 

0 Kudos
Message 1 of 7
(3,123 Views)

Why not build them into a 2-D array?

Message 2 of 7
(3,118 Views)
Solution
Accepted by topic author M.D.

Or bundle them into an array of 3-element clusters, using "Index & Bundle Cluster Array".

Message 3 of 7
(3,107 Views)

Ravens, I forgot to mention that I've already tried this solution, but then I don't know how to get rid of the index that I don't need (since I'm showing all of the 3 row/columns at the same time).

 

Thank you, Nathand. It works great!

0 Kudos
Message 4 of 7
(3,092 Views)

Yeah.  A 1-D array of clusters would have been my next suggestion.  It is slightly more work to create that data arrangement, but not bad.

0 Kudos
Message 5 of 7
(3,074 Views)

I would've gone the 1-D array of clusters rout because I can visualize that more easily.

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 6 of 7
(3,057 Views)

A better variation that still uses a 2-D array would be to display that array in a table control.  Show the column headers.

 

If you need row numbers, then show the row headers and number them in order.  You can use the vertical scrollbar.

Message 7 of 7
(3,053 Views)