01-17-2014 11:16 AM
Solved! Go to Solution.
01-18-2014 10:15 AM
Hi Jcheese,
I happen to have a short script that does that. Just pass the index of the Group whose Channels you want to sort.
Call ChanSort(1) Sub ChanSort(GroupIdx) Dim i, Swapped, ChNo1, ChNo2 Do ' Until bubble sort of GroupName() is finished Swapped = False FOR i = 1 TO GroupChnCount(GroupIdx)-1 ChNo1 = CNoXGet(GroupIdx, i) ChNo2 = CNoXGet(GroupIdx, i+1) IF StrComp(UCase(ChnName(ChNo1)), UCase(ChnName(ChNo2))) > 0 THEN Call ChnMove(ChNo2, Groupidx, i) Swapped = True END IF ' Name(i) and Name(i+1) need to be swapped NEXT ' i Loop Until NOT (Swapped) End Sub ' ChanSort()
Brad Turpin
DIAdem Product Support Engineer
National Instruments
01-18-2014 12:08 PM
Thanks - worked perfectly for what I needed.