05-07-2014 01:58 PM - edited 05-07-2014 02:00 PM
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
Solved! Go to Solution.
05-07-2014 02:00 PM
Why not build them into a 2-D array?
05-07-2014 02:07 PM
Or bundle them into an array of 3-element clusters, using "Index & Bundle Cluster Array".
05-07-2014 02:22 PM - edited 05-07-2014 02:24 PM
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!
05-07-2014 02:55 PM
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.
05-07-2014 04:25 PM
I would've gone the 1-D array of clusters rout because I can visualize that more easily.
05-07-2014 04:32 PM - edited 05-07-2014 04:33 PM
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.