Is there a way I can use the dataportal in alphabetical order?

Then I make a huge list of calculations and creation of new channels. I want to be able to use the channel list in Group 1 only, in alphabetical order, at the end of my file. Any ideas on how I could do this?

Hi Jcheese,

I happen to have a small script that does this.  Just pass the index of the group whose strings to sort.

Call ChanSort (1)

Void ChanSort (GroupIdx)
Dim i, swapped, ChNo1, ChNo2
"Until the GroupName() bubble sort 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) are to be swapped
NEXT ' I
Loop until NOT (swapped)
End Sub ' ChanSort()

Brad Turpin

Tiara Product Support Engineer

National Instruments

Tags: NI Software

Similar Questions

Maybe you are looking for

  • Satellite Pro L500 - Webcam stopped working

    The Web camera integrated on my Satellite Pro L500 stopped working with the following message:C:\Program Files (x 86) \Toshiba\Toshiba Web Camera Application\TWebCamera.exe The application has failed to start because its side-by-side configuration is

  • Photoshop Elements will not be printed for Officejet Pro 8550

    I sent this e-mail to HP and Adobe in the hope of finding a solution. Ask help from anyone. And Yes, 8550 is my default printer. I have problems with the software compatibility between Adobe Photoshop Elements 8.0 and the software for the HP Officeje

  • Missing components in my file Ultiboard if I transfer my file Multisim

    Hello! I am after this Introduction: http://www.NI.com/white-paper/10710/en/?CID=Direct_Marketing---em80795&espuid=CNATL000018702741 On the point 5. the part D: transfer to PCB Layout "" (8) select transfer "transfer to Ultiboard ' transfer to Ultibo

  • HP 5520: HP 5520

    My printer has started just terrible squeaking/grinding noises when printing.  Looks like machines in need of oil.

  • Update my SIM card to use in my blackberry curve 8520 blackBerry Smartphones

    Hey,. I recently bought a blackberry curve 8520. I bought Orange talk so he came with a SIM pay as you go. However, I already have a contract with orange & use my contract SIM card into my new blackberry. The works of simcard of contract but I cannot