NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

How to get the quantity of steps in a sequence (Teststand 2021)

Hello

 

Is there a way to get the number of steps in a sequence? Or, can I know which steps in the sequence are enabled to be saved in the report?

 

Regards

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Hola.

 

Hay alguna manera de poder obtener la cantidad de pasos que tengo en una secuencia? O, Como puedo saber que pasos en la secuencia están habilitados para que se guarde su resultado en el reporte?

 

Saludos

Regards

0 Kudos
Message 1 of 2
(918 Views)

The TestStand Help is your friend to figure all this out.

 

To get the amount of the steps in a sequence, you can use Sequence.GetNumSteps(...)

 

To figure out whether the steps are enabled to be saved in the report, you would need to grab each step and check the result recording. You could use something like

 

Sequence.GetStep(...).ResultRecordingOption and check for the right flag.

0 Kudos
Message 2 of 2
(895 Views)