NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Copy whole sequence and subsequence.

Solved!
Go to solution

In my main sequence there is a sequence in a Select Case structure that has one step, a call to a sequence which has several subsequences. I want to copy the whole case including all the subsequences and subsubsequences. By copying Case, step and end and then pasting am I copying the whole enchilada or just the cheese topping? Maybe there is a standard idiom for doing this.

 

thanks,

 

jvh 

0 Kudos
Message 1 of 5
(3,601 Views)
If you copy a step that calls a sequence and paste it somewhere else, the copied step will call that sequence. There is no copying of the called sequence itself, any subsequences, or any steps in any of the sequences. Nor should there be. If you copied a step that called a LabVIEW VI, you would not be creating a copy of the VI, would you?
0 Kudos
Message 2 of 5
(3,598 Views)

 

 

Thanks.

 

My apologies for wasting your time, I didn't word that well, too many disparate projects at one time....

 

I copied the step AND I copied and renamed the sequence. What I should have asked is the sequence copy a deep copy? That is to ask, identical all the way down thru subsubsequences? It seems to be and that is great because a great deal of it will be unchanged.

0 Kudos
Message 3 of 5
(3,594 Views)
Solution
Accepted by topic author jvh75021

If you make a copy of a sequence file, you copy everything that is in the sequence file. If you are in a main sequence and copied a subsequence, then the only copy made is of the subsequence. Obviously, any calls to further subsequences would not change.

 

If the two are almost identical, why don't you just use one and have different parameters that you pass?

Message 4 of 5
(3,567 Views)

 

If the two are almost identical, why don't you just use one and have different parameters that you pass?

 

 

Dennis, that was my goal. However the original was written by one who was an old hand at LV and he uses TS sparingly. The original has the same subsequences repeated for each frequency in a band. An expression is used to set the freq at the beginning of each repeated group. So the whole suite could could be shortened and a set of frequencies passed in for each band (group). I have been using LabView part time for a couple of months and I am learning TS on the fly. I proposed shortening the sequences and passing in parameters from an .ini file or perhaps using Property Loader. There are 4 modules involved. I offered two schedule alternatives and as I am learning on the fly I estimated that doing it the right way would take me 5 days and the quick way would take 2. (Less in reality but I have several other projects ongoing at the same time.) The RF engineers said we need it now so management said do it the quick way first. Either way it is a learning experience. 

 

That's probably much more information than you wanted. I guess I could say "that's the long and short of it".

 

Looking forward to doing it the right way, quick way will be done in a couple of hours.

 

jvh 

 

0 Kudos
Message 5 of 5
(3,562 Views)