NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Detecting skipped sequences

Solved!
Go to solution

Last year ~jiggawax~ gave me a method for removing sequence call from the results file, while leaving the results in those sequences in the results file.

https://forums.ni.com/t5/NI-TestStand/Sequence-step-results-in-Simple-Text-Report/m-p/3344148#M52553

This has worked fine, but now I find a problem.

Some of my sequence calls are dependent on preconditions, and if the sequence is not called I get an error in the "Move sub Results to Super Results" step in my sequential model.

"Unknown variable or Property name 'Parameters.Results.TS.SequenceCall'"

I think all I need to do is add to the precondition for that "Move sub Results to Super Results" step to detect if the sequence concerned has actual run.

What is the best way to detect this?

0 Kudos
Message 1 of 3
(2,662 Views)
Solution
Accepted by topic author David_Stevenson

Hi David,

You can apply this as a precondition for your code in the ProcessModelPostResultListEntry callback:

 

RunState.Caller.Step.Result.Status!="Skipped"

 

It checks the status of the step that just finished (of which the sub sequence calls count) and the code will only run if the step wasn't skipped.

 

Nic

--------
Nico
Systems Engineer

Certified TestStand Architect Certified LabVIEW Architect

Message 2 of 3
(2,600 Views)

Thanks, that is exactly what I was looking for.

David

 

0 Kudos
Message 3 of 3
(2,594 Views)