06-08-2007 02:14 AM
06-08-2007 02:32 AM
Matthias Alleweldt Project Engineer / Projektingenieur | Twigeater? |
06-08-2007 09:38 AM
Hi lai,
You may want to consider creating a new "Sorted Values" group and sending each set of 3 rows from channel 2 to a new channel in this new group. It depends what you want to do with this data. If you want to plot each set of 3 rows as a different curve on a graph, then this would be the right approach. If you want to calculate statistics on each set of 3 rows, then you don't have to do this (nor the sorting).
If you just want to see the data displayed this way in a table, then I'm afraid you're going to have to use a VBScript to do the sorting cell by cell. The easiest way to do this is to use a bubble sort algorythm, since you can run it once for the channel 2 values and a second time for the channel 1 values and get the two-level sorting that you're after.
Will you ever need to do this with more than 2 channels?
Brad Turpin
DIAdem Product Support Engineer
National Instruments