To download NI software, including the products shown below, visit ni.com/downloads.
This example can be used to recover a sequence file which has an infinite loop in the SequenceFileLoad callback. The example uses the TestStand API to load the sequence without running the callback and modifies the callback name to disable it.
In some cases, you may inadvertently introduce an infinite loop or other condition in a SequenceFileLoad callback. Because this callback automatically executes when you open the sequence file, this can cause you to be unable to open the sequence file to edit the problematic code.
The attached sequence file allows you to browse to a sequence file, and uses the TestStand Engine API to open the file without running the SequenceFileLoad callback using the GetSeqFile_DoNotRunLoadCallback option:
Locals.SeqFileRef = RunState.Engine.getsequenceFileEx(Locals.SeqPath[0],GetSeqFile_DoNotRunLoadCallback,ConflictHandler_Prompt)
The example then renames the callback, so you can open the file in the sequence editor and fix the SequenceFileLoad sequence.
TestStand 2014 or Compatible
Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.