ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Getting Context from .NET assembly

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

 

0 Kudos
Message 1 of 5
(797 Views)

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?

0 Kudos
Message 2 of 5
(746 Views)

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.

0 Kudos
Message 3 of 5
(697 Views)

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.

0 Kudos
Message 4 of 5
(687 Views)

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

 

 

0 Kudos
Message 5 of 5
(670 Views)