03-18-2010 03:54 PM
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
Solved! Go to Solution.
03-18-2010 04:28 PM
03-18-2010 04:51 PM
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.
03-19-2010 11:33 AM
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?
03-19-2010 12:45 PM
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