NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

How get total number of step tests in the sub sequence programmatically in labView

How get total number of step tests in the sub sequence programmatically in labview using result recording option.

0 Kudos
Message 1 of 7
(668 Views)

Do I get it right, that you want to include the number of TestSteps in a Subsequence in a report?

And you want to add the number of TestSteps using a LabVIEW code module?

0 Kudos
Message 2 of 7
(659 Views)

You can use the Sequence Context to get a reference to the Sequence

and then call the Sequence.GetNumSteps method.

get number of stps.JPG

0 Kudos
Message 3 of 7
(657 Views)

If you are looking to get the number of steps in a sequence by name then.

 

NumSteps.JPG

0 Kudos
Message 4 of 7
(647 Views)

You mentioned that in forum getting the total number of steps tests in sequence, but I need a total number of step tests in the subsequence also, how to get programmatically in LabVIEW.

0 Kudos
Message 5 of 7
(598 Views)

If you want to get the number of steps in the sequence (subsequence), SercoSteveB gave you everything you need. However, I wonder about the phrase "using result recording option". Are you sure what this option means (result recording options)? Can you explain better what you mean by that?

Michał Bieńkowski
CLA, CTA, CPI

  1. Did someone devote their time to help solve your problem? Appreciate it and give kudos.
  2. Problem solved? Accept as a solution so that others can find it faster in the future.
  3. Contribute to the development of TestStand by voting on the TestStand Idea Exchange.
0 Kudos
Message 6 of 7
(591 Views)

This following VI gives you the total number of steps in the currently running sequence.  If you need the number of steps in a particular subsequence (of the currently running sequence) then use something like my second post on this thread and replace the string constant Sequence_2 with the name of the subsequence you are interested in.  You will also need to decide if you want the number of steps in Setup, Main or Cleanup as defined by the stepGroupParam.

 

GetNumSequenceFileSteps.JPG

0 Kudos
Message 7 of 7
(582 Views)