12-16-2024 10:10 AM
Hi all,
I have a .NET assembly called by TestStand, but I don't have the context.
Would it be possible to get the current contect through the windows thread ID corresponding to the TS thread ID ?
Thanks for your help
01-02-2025 01:50 PM
I assume you are referring to SequenceContext. Do you control the source code? And can you update to the function signature to add a parameter to pass a reference to the SequenceContext?
01-09-2025 07:41 AM
Thanks for you response.
If I ask the question, it's because I can't pass sequence context by parameter.
I'm pretty sure that I can get sequence context from curretn windows thread.
But I don't see which API functions I have to use.
01-09-2025 08:53 AM
Are you passing any NI TestStand objects? And is your code built with TestStand API library? If not, then even if you somehow got a reference to a NI Object in memory, I don't know how you would process the properties contained within it.
01-10-2025 04:18 AM
My code is built with TS API.
When I need the sequence context, I have a reference to TS Engine object and I can get current windows thread though .net framework.
Thanks