NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Getting the value from a StationGlobal reference variable in TestExec User Interface Editor Mode.

Hi,

 

I am using the TestExec User Interface editor mode, in the SequenceFileLoad callback from my sequence an instance is made from a C# code module

(the code module is located in another dll) , this reference is stored into a station global variable.

Now I want to retrieve the reference from the station global variable in my TestExec User Interface code.

 

So, is it possible to get this reference back from the station global variable?

 

Best regards

 

0 Kudos
Message 1 of 3
(3,127 Views)

ccds,

 

It sounds like your UI is written in .NET and you want to use an object created in your sequence in your UI.  This is generally a difficult thing to do because of .NET AppDomain issues.  Could you describe what you are trying to accomplish?  Because there's probably another (easier) way to implement it.

Josh W.
Certified TestStand Architect
Formerly blue
0 Kudos
Message 2 of 3
(3,030 Views)

Reading the StationGlobal is not a problem. But the problem maybe that your reference contained in your StationGlobal is probably not valid once the SequenceFileLoad has completed its execution which it will have done once the SequenceFile has loaded.

 

Any references you wish to pickup are best down via one of the ProcessModel callbacks such as ProcessSetup. 

 

Regards

Ray Farmer

Regards
Ray Farmer
0 Kudos
Message 3 of 3
(3,026 Views)