04-18-2007 03:54 PM
04-19-2007 01:35 AM
Hi joebae,
In TS 3.5 I have the RunState.NumStepsExecuted property. While executing the first step its value is 0, for the second step it is 1, etc. So you can use it directly as a step index (since index is zero-based). And it resets at the beginning of Setup, Main and Cleanup. To distinguish if TS is currently in Setup, Main or Cleanup you can use RunState.StepGroup. So you can use StepGroup together with NumStepsExecuted to get which step in which group is executing.
But, for the step name I could not find a direct solution either. Maybe you can locally in CVI store an array of step names. I know, it becomes a pain when you change a step name or order but that is the best I could find for now.
I will inform you if I can find a better solution.
04-19-2007 01:52 AM
Hi again joebae,
There is not a Name property in TS sequence context, but in TS help I saw Step.Name. Maybe you can access it through CVI directly.
So you can probably write the following as the lookup string:
RunState.Sequence.Setup/Main/Cleanup[RunState.NumStepsExecuted].Name
Hope this helps.
04-19-2007 01:45 PM - edited 04-19-2007 01:45 PM
Message Edited by Brandon V on 04-19-2007 01:52 PM
04-19-2007 02:31 PM
04-23-2007 08:01 AM