NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

how to run selected sequences/steps after the great-grandparent, the grandparent and the parent sequence ?

Hi,

 

I developped a sequence file with many levels of interlinked subsequences, and I want to be able to run selected subsequences/steps after the great-grandparent, the grandparent and the parent sequence.

Anyone know the best method to do this ?

 

 

0 Kudos
Message 1 of 12
(4,325 Views)

Hi,

 

Maybe that my question is not clear. In case of a sequence file with 3 levels of interlinked subsequences(Main sequence, Parent sequences and child sequences), I wish I could run one or more selected child sequences after the Main sequence and the parent sequence.

0 Kudos
Message 2 of 12
(4,314 Views)

Hi,

 

do you mean you what to run a selected step which is a SequenceCall step in the Parent sequences. You can do this by using 'Run Selected Step' or 'Run Selected Step using..' from the menu.

Regards
Ray Farmer
Message 3 of 12
(4,310 Views)

Hi,

 

I'm sorry, my question is unclear. I'm going to illustrate my question with an example of sequences in attached file.

Actually, if I select the sequence call "Child 2.2.2" of the "Parent 2.2" sequence and I run this call with the "Execute->Run Selected Steps Using->Single Pass" menu, the followings steps are executed in this order :

- Setup Parent 2.2

- Setup Child 2.2.2

- Main Child 2.2.2

- Cleanup Child 2.2.2

- Cleanup Parent 2.2

 

I would like this execute the followings steps in this order :

- Setup MainSequence

- Setup Grandparent 2

- Setup Parent 2.2

- Setup Child 2.2.2

- Main Child 2.2.2

- Cleanup Child 2.2.2

- Cleanup Parent 2.2

- Cleanup Grandparent 2

- Cleanup MainSequence

0 Kudos
Message 4 of 12
(4,293 Views)

Hi Slanda33200,

 

Did you try to change the call sequence Step number from the MainSequence as:

- Calling the MainSequence

- from the main sequence call the Grandparent2

- from the GrandParent2 call the Parent2

- from the Parent2 call the childParent2

 

In this way, because all sequences are imbricate within the MainSequence, you will execute first the mainsequence and one by one the others.

 

Regards,

0 Kudos
Message 5 of 12
(4,289 Views)

your sequence file has an error in that Grandparent 2 actually calls Grandparent 1 sequence.

 

If you change this and run the selected step Grandparent 2 does this do what you require?

 

 

Regards
Ray Farmer
0 Kudos
Message 6 of 12
(4,281 Views)

Indeed, there was an little error in the sequence file. You can find the corrected file in attachment.

Run the selected step "Grandparent 2" doesn't do what I require because this run all sequences under "Grandparent 2", while I want to run "Parent 2.2" and "Child 2.2.2" under "Grandparent 2".

0 Kudos
Message 7 of 12
(4,273 Views)

maybe you can utilise the SequenceFilePreInteractive and SequenceFilePostInteractive callback sequences. These run before and after the call to the selected step(s).

 

Therefore it will run:

SequenceFilePreInteractive- Setup,Main,Cleanup

Selected Step Setup, Main Cleanup

SequenceFilePostInteractive, Setup,Main,Cleanup

 

You could put your required Setup steps in the SequenceFilePreInteractive Setup and your required cleanup steps in SequenceFilePostInteractive Cleanup

 

 

 

Regards
Ray Farmer
0 Kudos
Message 8 of 12
(4,269 Views)

Hi,

 

If I understand, your solution require to delete Grandparent1, Grandparent3, Parent 2.1, Parent2.3, Child2.2.1 and Child2.2.3, but can't do this.

 

Regards,

0 Kudos
Message 9 of 12
(4,267 Views)

No I am not saying delete anything.

 

If you run a selected step then all that runs is the Sequences Setup then the Selected Steps and finally the Cleanup. What I am saying is add the missing steps that are required to run in the Pre and Post Interactive Sequences.

 

 

Regards
Ray Farmer
0 Kudos
Message 10 of 12
(4,264 Views)