03-15-2010 12:53 PM
I have a sequence that sets a local variable, Locals.LowPassFreqGhz = 1.800.
Then it runs 5 subsequences.
The Local is set to a new value and then the same 5 subsequences are run again.
Now I have new model numbers where the pair is different and soon will have models where there will be groups of 4 frequencies instead of two. Therefore I would like to put the 5 seqs into a subseq and pass the freq based on a select statement. In my limited understanding and knowledge of TestStand I think the subsequence would have its own Local.variables. How should I pass this local to a subsequence, convert to a File.global?
thanx,
jvh
Solved! Go to Solution.
03-15-2010 01:14 PM
03-15-2010 03:41 PM
Thanks Mr K.!
Haven't read that section yet but the light bub (albeit maybe 52 watts rather than a full 60) came on when I read your post. As a vague paraphrase: "One man's locals are another's parameters".
jvh
03-16-2010 09:40 AM
Hi,
I just wanted to mention a trick a friend showed me once. The Main Sequence Locals are copied to the subseq Parameters. In his subseq he always copies the Parameters to the subseq Locals in a Statement step at the beginning of the subseq. All the steps in the subseq point to the subseq Locals. That way, if you need to change the subseq Parameters, then you won't break all the steps.
cc
04-04-2010 01:52 PM
there is another way also to
Teststand give us an option of "Propagation" of a variable to subseqeunce.
we need to create a local variable both in main and sub sequence with same name and use "Propogate to subsequence" in main seqeunce and " allowpropagation from caller" in sub seqeunce.
This option of propagation one can see by right click of a variable in variables pane. This allows us to get the values of variables in main seqeuence to sub seqeunce.
But need to remember that both variable names in main and sub sequence should be the same.
Regards,
Praveen.
04-06-2010 06:59 AM
Thanks dowNow and Sury.
Good info to know.
11-04-2024 09:22 AM
14 years later. I just had the same light bulb moment 😄