11-18-2011 10:08 AM
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 ?
11-21-2011 03:01 AM
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.
11-21-2011 06:33 AM
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.
11-22-2011 09:59 AM
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
11-22-2011 11:46 AM
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,
Rémi D.
National Instruments France
11-22-2011 01:59 PM
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?
11-23-2011 03:18 AM
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".
11-23-2011 03:44 AM
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
11-23-2011 03:47 AM
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,
11-23-2011 03:57 AM
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.