NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Determing the file which called a sequence....

 
0 Kudos
Message 1 of 3
(2,601 Views)
Sorry, Pressed enter to quickly....
So heres he question...

MainSequence in "Sequence_1a.Seq" runs the step "SequenceCall", which calls a sequence called "DoSomething" in "SequenceFile_2a.Seq". Nice and easy so far....

Now, the "DoSomething" Sequence needs to call a sequence which is in "Sequence1_1a.Seq"......But, the sequence file name, can't be hard coded because the there are multiple versions of the file "Sequence_1a.Seq" (eg. "Sequence_1b.Seq").

So how can "Sequence_2a.Seq" determine the file name of the sequence that called it?


Now I know one solution is to pass a parameter into "Sequence_2a.Seq" with the relevent info in it(Possibly the best way). But the files have already been written and it would be a long task to change everything to include parameters and the handling for it.

Is there a way using the API to determine the sequence filename of the caller to the "DoSomething" Sequence...?

Any help would be appriciated...
0 Kudos
Message 2 of 3
(2,598 Views)
Hi!

You can find out the path of the sequence file that called a sequence in another sequence file by using the following property path in the called sequence: "RunState.Caller.RunState.SequenceFile.Path"

I hope this helps.

Good Luck!

Marcela
0 Kudos
Message 3 of 3
(2,589 Views)