To TS_diver -
I am not sure which example you are referencing, but inserting a step into a run-time copy of a sequence that is running cannot be supported by TestStand. It may work in certain circumstances, but the key issue of non-support by TestStand is that for each step in the run-time copy of a sequence TestStand expects a corresponding step to exist in the edit-time copy of the sequence. Some of these references are by pointer and some are by index. TestStand uses the edit time copy of the sequence for various information. We do this for performance reasons and it also saves memory.
The only thing that I can recommend is to create a placeholder step that you call conditionally run using preconditions. If you need to configure the step, you
can use the API to update the properties of the step prior to running the step.
Scott Richardson (NI)
Scott Richardson
https://testeract.com