NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

activate or skip "Record Results" and "Step Failure Cause Sequence Failure" for all steps of a step type

Hello all,
I am using teststand 3.1
Is it possible to skip or activate ´"Record Results" and "Step Failure Cause Sequence Failure" for all steps of a step type.
It is very much work to do this for all steps, because I have hundred of steps
 
regards
 
samuel
0 Kudos
Message 1 of 6
(3,628 Views)

Hi,

To set a step to skip you have to set the TS.Mode = "skip" eg RunState.Sequence.Main[0].TS.Mode = "skip" would set the first step in Main of the active Sequence.

Likewise with the Record Results, would be TS.NoResult = True for not too record the step result.

and

TS.StepFCSeqF = True would cause the sequence to fail if the step failed.

Hope this helps

Regards

Ray Farmer

Regards
Ray Farmer
0 Kudos
Message 2 of 6
(3,614 Views)

Thank You Ray,

but this method only handles one step. I want to skip all steps of a step type for example all Statement steps.

How is this possible?

 

regards samuel

0 Kudos
Message 3 of 6
(3,601 Views)

Do you want to change the static version or the runtime version of the sequence file?

Ray.

Regards
Ray Farmer
0 Kudos
Message 4 of 6
(3,598 Views)

The static version

 

samuel

0 Kudos
Message 5 of 6
(3,595 Views)

hi,

here is an example that will change the TS.NoResult. You just have to change this area of the sequence to suit your needs

I haven't added any fancy stuff, such as adding a filedialog to get the seq file to change, you will find the various variables in the Locals.

Hope it helps

There is a version for 3.1 and 3.5.

Regards

Ray Farmer

Regards
Ray Farmer
0 Kudos
Message 6 of 6
(3,584 Views)