I'm writing a LabView VI to add new steps during the execution of a sequence. I've found a few issues and need assistance. In LabView, I use an Engine.NewStep followed by a Sequence.InsertStep.
I run my sequence using "Test UUTs" or "Single Pass" in the sequence editor. If I have breakpoints set, the sequence works just fine. My new steps appear in the Steps tab and they appear in the report once the sequence is done.
If I remove all breakpoints, I get the following message during the execution:
"Invalid step index '16' for 'Main' phase in sequence 'MainSequence'. Error Code: -17301, Index out of range."
As a workaround, I have inserted an Exe cution.Break at the beginning of my VI. I get no errors in the sequence editor when I do this. The problem with this is my execution is paused in the sequence editor once the VI completes. The execution remains paused even if I include an Execution.Resume at the end of my VI. I want the sequence to run all the way through without pausing. Any suggestions?
As I add steps during the execution, I have been using the None adapter. If I use the LabVIEW or CVI adapters, can I programmatically specify the module that I want to use? As a workaround, I might try cloning existing steps, but I'd much prefer to create all my steps from scratch.
I'm writing a system test for a highly configurable multiplexer, so it's important that I can reconfigure my sequence as it runs. Has anyone else tried to do this?
Chris Norris Carrier Access Corp. email@example.com (303) 218-5826
Chris, It is not really safe to add/delete steps to an executing sequence. Instead what you can try is to create a sequence on the fly with the steps that you need, and then run it as a subsequence. In TestStand 2.0, there is an example that does this and it's actually pretty straightforward. The example is called "Sequence Builder Tool" and it creates and runs a sequence on the fly by adding steps from a template.