07-26-2023 03:19 PM
Sequence File B can be called by Sequence File A, or run by itself.
How do I find out, in sequence file B, that it's called by A, or run by itself at runtime?
In A, the Sequence Call "Execution Options" is "Use New Execution".
B is called multiple times in A and both in Single Pass and Test UUTs.
Solved! Go to Solution.
07-27-2023 12:23 AM
If you want to find out during runtime from where a module is called, use a breakpoint and investigate the Call Stack
I highly reccomend %TestStandpublic%\Examples\Fundamentals\Structure of TestStand Executions to learn about it.
07-27-2023 08:56 AM
Thanks for reply. This is a very good example.
But my case is a little different from the example: I have to deal with multiple sequence files.
At runtime, the call stack only show 2 items:
the model seq., and seq. B.
The caller, Seq. A, doesn't show up.
07-31-2023 06:56 AM - edited 07-31-2023 06:56 AM
Sorry, I don't undestand your description ... could you please proved further information or a screenshoot please?
07-31-2023 09:29 AM
When sequence file B is called by sequence file A, on the call stack, only 2 items:
the SequentialModal.seq, and sequence file B.
08-01-2023 12:59 AM
Ok, now I get it
If A.seq calls B.seq with an "ordinary" sequence call, you will see a call stack like this
If A.seq calls B.seq starting B.seq using a process model, you will see something like this (I guess that's what you are referring to)
For the records: If A.seq calls B.seq starting B.seq without a process model, you will see something like this
So why is this:
An new execution is an independent entity, which does not know about its' caller.
08-01-2023 08:33 AM
> An new execution is an independent entity, which does not know about its' caller.
That's what I thought.
Alternatively, is there a way to find out if A.seq is running?
08-01-2023 08:37 AM
@zou wrote:
> An new execution is an independent entity, which does not know about its' caller.
That's what I thought.
Alternatively, is there a way to find out if A.seq is running?
Well you can tell if the execution reference is still active, this yould be an inidcator.
Guess you could also set up a communication queue for both executions to send heartbeat messages or sth alike
08-01-2023 09:54 AM
Not sure how to get execution reference of A.seq in B.seq.
But queue works.