07-05-2024 05:04 AM
How get total number of step tests in the sub sequence programmatically in labview using result recording option.
07-05-2024 05:18 AM
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?
07-05-2024 05:20 AM
You can use the Sequence Context to get a reference to the Sequence
and then call the Sequence.GetNumSteps method.
07-05-2024 05:41 AM
If you are looking to get the number of steps in a sequence by name then.
07-09-2024 01:57 AM
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.
07-09-2024 02:23 AM
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?
07-09-2024 02:55 AM - edited 07-09-2024 03:01 AM
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.