NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

sort sequences in a sequence file

I just copied a bunch of sequences from different files into a common sequence file. I think there were multiple versions of some of the sequences, but sonce there's such a long list of them now, it's difficult to compare. If I could sort the sequences then the similar ones would all bunch together, and I could then decide which ones to keep.

Does anyone know of a way to sort the sequences in a sequence file in TestStand 2.0.1 or eralier?

Thanks in advance for eny help you can provide
0 Kudos
Message 1 of 3
(3,175 Views)
Hello,

If your sequence file has a large number of sequences, the best way to rearrange the sequences is to build an application which does it using the TestStand ActiveX API. Here is an outline of something you could try. First, you can get a reference to your sequence file using the GetSequenceFileEx method of the TestStand Engine. From here you can get a reference to each sequence in your sequence file using the GetSequence method. Once you have a reference to each sequence in your sequence file, you can use the Name property to get the sequence name. Once you have the name you could order the sequences and then insert them into your sequence file using the InsertSequenceEx method.

This should get you started with building your application which rearranges the sequences in your sequence file. Also, there is good documentation on the TestStand ActiveX API for TestStand 2.0.1 in the TestStand Programmers Help. This can be found by going to Help >> TestStand Programmers Help. I hope that this information is helpful to you.

Regards,
Kevin L.
0 Kudos
Message 2 of 3
(3,156 Views)
Kevin,

Thanks. Since sequence files are text files, and I'm pretty good with Microsoft Word macros, I decided to process it in Word. In about 3 or four hours, I had a macro that sorted the sequences quite nicely. I may still take a look at your method too just to see how it would work.

David
0 Kudos
Message 3 of 3
(3,154 Views)