04-29-2010 09:55 AM
Sorry I forget some attachments in my first message,
I have an issue about how to reorganise an array. I have also joined an example proposed by NI but it holds only for 4 spectrums. I am also joining a simple example of array to reorganise (testA.lmv)
Summary:
Many Voltage-Current spectrums are stacked on top of each other in 2 columns (like in the simple example "testA.lmv" where 4 spectrums with 11 points each are stacked on each other).
I need to transform this array in "N (in the example N=4) times 2 columns of Np (in the example 11) points each".
The number of spectrums and the number of points for each spectrum are known but vary from one experiment to the other.
Within one experiment the number of points Np per spectrum is the same for all spectrums stacked in 2 columns.
For 4 spectrums it is easy to use the "sub array" tool and to include 4 times the sub-array tool to extract each spectrum.
But; because N is different for each experiment I will not modify each time the vi and so I have tried to combine the "sub array" tool within a For (or while loop) with N cycles, 1 for each spectrum.
Unfortunatly it does not work
Does anyone has an idea how to deal with such a combination of sub-array and For loop (or while) ? or does it exists a better solution ?
Thank you
04-29-2010 10:07 AM
You should not create a new thread just to post additional information - just add message to your original thread. Now people won't know where to respond. Please keep the discussion in your original thread.
For all others: please do not post replies in this thread, let's keep the discussion in the original thread.