09-14-2009 06:46 PM
I want to sort my sequences by name. It really doesn't matter the order because I am calling those sequences from a main sequence. I am using TestStand 4.2, I saw a previous question for an older TestStand and I was hoping that maybe this function was added to newer version.
Regards
09-15-2009 12:29 AM
Hi,
I don't believe there is a function, you will have to generate your own and maybe add it to the Tools menu.
regards
Ray Farmer
09-15-2009 10:44 AM
Oroan,
There is no explicit function to do this but as Ray was saying you could write your own. Here's a link to an outdated discussion forum describing the process
sort sequences in a sequence file
http://forums.ni.com/ni/board/message?board.id=330&requireLogin=False&thread.id=5923
Updated for TestStand 4.2 you can do this by instead of using the ActiveX API use TestStand expressions. You can determine the number of sequences in your sequence file by calling SequenceFile.NumSequences. Loop for each of the sequences and get the name by using SequenceFile.GetSequence (Number index).Name. Sort all of these names using your favorite sorting algorithm and then remove them and insert them back in the sequence using SequenceFile.RemoveSequence (Number index) and SequenceFile.InsertSequenceEx (Number index, Object Reference sequenceToInsert). The RemoveSequence Method will return the Object Reference you need for InsertSequenceEx.
Regards,
Steven Zittrower
Applications Engineer
National Instruments
09-15-2009 12:41 PM