NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

goto main sequence cleanup (nested Subseqs)

Hi

I am using nested  Sub seqs in my  Main Seq.

 

If an error or Failure Occurs  I go to respective callbacks

 

SequenceFilePostStepFailure              SequenceFilePostStepRuntimeError

 

From here I have to go directly to  Main seq Cleanup

 

If I use

RunState.Caller.RunState.GotoCleanup=True      I just go to the Cleanup of the Calling -Sub Seq

 

how can I acheive this with  one statement!  & a solution which is  also   clean !

 

(Changing the Option for each Sub seq: On  step Failure  -> i wan t to  avoid)

 

 

0 Kudos
Message 1 of 8
(5,380 Views)

I think

RunState.Main.GotoCleanup=True

ought to do what you want?

0 Kudos
Message 2 of 8
(5,343 Views)

Just trying to understand your use case better. Do you want to skip the cleanup steps of the subsequences? Why?

 

-Doug

0 Kudos
Message 3 of 8
(5,242 Views)

thanks Doug,

 

bcos I dont do any thing in those Subseq cleanups,

 

well thts  also not the issue   if the  execution pointer jumps from cleanup to cleanup 

 

but if the error occurs in  subseq  or  nested -Sub-seqs   the pointer jumps to cleanup of   the seq where the error occurs (caller of SequenceFilePostStepRuntimeError)   in this callback i am setting (RunState.Caller.RunState.ErrorReported =True)

 

now I expect tht the  error shld run thr the callchain  till mainsequence  but may be I have to set also some other flag?  

 

well On ru n time Error in Station Options = Ignore  buit thts cos  I handle the errors in  callback.

 

 

0 Kudos
Message 4 of 8
(5,229 Views)

I'm still not clear on what you are trying to accomplish. Why is it a problem that all of the cleanups of  the subsequences are called? It seems like if there are any steps in those cleanups, they really should get called or it won't cleanup properly, and if there aren't any steps then it's harmless.

 

-Doug

0 Kudos
Message 5 of 8
(5,198 Views)

there r no steps in sub seq cleanup

 

but   only  in the main seq cleanup

 

the isuue is  i want to jump only thr all cleanups that will make my day

0 Kudos
Message 6 of 8
(5,185 Views)

Hello Aparab,

I have the same problem like you. Maybe your issue is solved now?

There are 3 Sub-Seq in the Main-Seq. If one step of the first Sub-Seq fails, I want to skip the procedure in this way:

  1. Go to Cleanup of the actual Sub-Seq No.1
  2. Jump over Sub-Seq No.2 and No.3
  3. Go to Cleanup of the Main-Seq

Could you help me?

0 Kudos
Message 7 of 8
(2,814 Views)

Hello  Flobias,

 

unfortunately  I am not able  to recollect the  solution  and I have also  changed  the  company in  between.

so cannot  give you  a  specific answer.

 

regards

Akshay

 

0 Kudos
Message 8 of 8
(2,812 Views)