To download NI software, including the products shown below, visit ni.com/downloads.
This example demonstrates how you can quickly create tools to programmatically edit one or more sequence files using the ForEach.seq sequence file that ships with TestStand.
When working with many large sequence files, it is often useful to be able to quickly update all of your files programmatically. There are many approaches you can use to accomplish this:
To make the process of creating update tools easier, TestStand includes a sequence file which implements much of the required functionality for you. This sequence allows you to define a callback sequence which runs for each step, sequence, or sequence file in a list of sequence files. The sequence files to operate on can be specified as a list or as a directory containing the files. This sequence file is ForEach.seq, and is located in the <TestStand>/Components/Tools Directory. To create a sequence update tool with this method, follow these steps:
Refer to the attached example to see a tool implemented in this way. The attached example examines all step modules for absolute paths, and replaces them with relative paths if the module name can be found using the TestStand search directories.
Fix Absolute Module Paths_NIVerified.zip
TestStand 2010 or Compatible
Analyze Paths Legacy_NIVerified.zip
TestStand 2.0 or Compatible
LabWindows/CVI 5.5 or Compatible
Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.