02-03-2022 05:18 AM
Hi,
i have a sequence with a call as new thread and i need the real caller at run-time.
The problem is:
RunState.Caller gives not the caller who start the new thread, but the current step of the calling sequence. It´s not the same.
RunState.CallingStep returns a run-time copy of the step and that´s what i actually want, but so i can´t get another caller.
About the background: I want to get every item of the complete CallStack and find out the StepGroup.
Did anybody have an idea?
Thanks for help.
Best regards
Rico
02-03-2022 01:48 PM
Hi Rico,
https://forums.ni.com/t5/NI-TestStand/Call-Stack-Navigation/td-p/440355
Is this something similar to what you are looking for?
Ravi
02-08-2022 01:00 AM
Hi Ravi,
thanks for the linked Topic. These solutions i have tried already.
The navigation through the CallStack ist not the problem, but what i get back.
At a sequential proccesing everthing is ok. Only when there is a parallel thread, the returned caller (it should be the SequenceCall as new thread) is not the expected.
In my example, you can see the difference.
Greetings
Rico